HowTo Install Redmine on Heroku » History » Version 1
Lluís Gili, 2012-10-26 20:31
1 | 1 | Lluís Gili | h1. HowTo Install Redmine on Heroku |
---|---|---|---|
2 | |||
3 | * Install Redmine locally |
||
4 | |||
5 | <pre> |
||
6 | git clone git://github.com/redmine/redmine.git |
||
7 | cd redmine |
||
8 | git checkout 1.4-stable |
||
9 | cp config/database.yml.example config/database.yml |
||
10 | # edit config/database.yml |
||
11 | bundle install |
||
12 | rake config/initializers/session_store.rb |
||
13 | </pre> |
||
14 | |||
15 | * create an Heroku app |
||
16 | |||
17 | <pre> |
||
18 | heroku create |
||
19 | </pre> |
||
20 | |||
21 | * remove from .gitignore these lines |
||
22 | |||
23 | <pre> |
||
24 | /config/initializers/session_store.rb |
||
25 | /public/plugin_assets |
||
26 | /Gemfile.lock |
||
27 | /Gemfile.local |
||
28 | </pre> |
||
29 | |||
30 | * configure heroku to run bundle install without sqlite group, otherwise it will fail |
||
31 | |||
32 | <pre> |
||
33 | heroku config:add BUNDLE_WITHOUT="sqlite" |
||
34 | </pre> |
||
35 | |||
36 | * seems that Heroku cedar stack "still doesn't support BUNDLE_WITHOUT":https://devcenter.heroku.com/articles/bundler#specifying-gems-and-groups so we have to comment sqlite groups on Gemfile |
||
37 | |||
38 | <pre> |
||
39 | # edit Gemfile, comment sqlite groups |
||
40 | bundle install |
||
41 | git add Gemfile Gemfile.lock |
||
42 | git commit -m "remove sqlite gem from bundle" |
||
43 | </pre> |
||
44 | |||
45 | |||
46 | * commit changes and push to Heroku |
||
47 | |||
48 | <pre> |
||
49 | git add -A |
||
50 | git commit -m "changes for heroku" |
||
51 | git push heroku 1.4-stable:master |
||
52 | </pre> |
||
53 | |||
54 | * migrate and populate database |
||
55 | |||
56 | <pre> |
||
57 | heroku run rake db:migrate |
||
58 | heroku run rake redmine:load_default_data |
||
59 | </pre> |
||
60 | |||
61 | (from http://lluisgili.heroku.com/lluis/published/redmine+on+heroku) |