Skip to content

Instantly share code, notes, and snippets.

@masainox
Created February 8, 2013 11:37
Show Gist options
  • Save masainox/4738375 to your computer and use it in GitHub Desktop.
Save masainox/4738375 to your computer and use it in GitHub Desktop.
#!/bin/sh
git clone git@github.com:masainox/redmine.git
cd redmine
heroku create
git checkout 2.2-stable-for-heroku
git push heroku 2.2-stable-for-heroku:master
bundle exec rake generate_secret_token_for_heroku
heroku run rake db:migrate
heroku run rake redmine:load_default_data
# open app
heroku open
@marcnaweb
Copy link

Hi, first of all I would like to thank you for this script, it's nearly perfect.
Just need to specify ruby 1.9.3 in the gemfile otherwise the db doesn't migrate.
also, I needed the copy / paste manually the result of the bundle exec rake generate_secret_token_for_heroku ( heroku config:set REDMINE_SECRET_TOKEN=Secret_token_here) and to restart the application with heroku ps:restart (this last one, might not be needed, but my app seems to worked only after the restart)
beside it, this really helps to deploy on Heroku, thanks :)

@loicginoux
Copy link

Thank you for this!!! To make it work and to complete previous comment, I had to :

  • "bundle install" before "bundle exec rake generate_secret_token_for_heroku"
  • add "gem 'iconv', '~> 1.0.3'" to Gemfile
  • add "ruby '1.9.3' " to Gemfile
  • "heroku ps:restart" before "heroku open"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment