HowTo Install Redmine on Heroku

  • Install Redmine locally
git clone git://github.com/redmine/redmine.git
cd redmine
git checkout 1.4-stable
cp config/database.yml.example config/database.yml
# edit config/database.yml
bundle install
rake config/initializers/session_store.rb
  • create an Heroku app
heroku create
  • remove from .gitignore these lines
/config/initializers/session_store.rb
/public/plugin_assets
/Gemfile.lock
/Gemfile.local
  • configure heroku to run bundle install without sqlite group, otherwise it will fail
heroku config:add BUNDLE_WITHOUT="sqlite" 
# edit Gemfile, comment sqlite groups
bundle install
git add Gemfile Gemfile.lock
git commit -m "remove sqlite gem from bundle" 
  • commit changes and push to Heroku
git add -A
git commit -m "changes for heroku" 
git push heroku 1.4-stable:master
  • migrate and populate database
heroku run rake db:migrate
heroku run rake redmine:load_default_data

(from http://lluisgili.heroku.com/lluis/published/redmine+on+heroku)