Created
February 8, 2013 11:37
-
-
Save masainox/4738375 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git clone [email protected]: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 |
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
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 :)