Skip to content

Instantly share code, notes, and snippets.

@sankitch
Created January 5, 2013 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sankitch/4460309 to your computer and use it in GitHub Desktop.
Save sankitch/4460309 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd /path/to/dir
git clone git://github.com/redmine/redmine.git
cd redmine
git checkout -b production
vim .gitignore # *1
vim Gemfile # *2
vim config/application.rb # *3
vim config/environment.rb # *4
bundle install --path=.bundle --without production:mysql:postgresql
bundle exec rake generate_secret_token
# heroku accounts:set ACCOUNT_NAME
heroku create APPNAME
git add .
git commit -m "Prepare for heroku."
git push heroku production:master
heroku run rake db:migrate
heroku run rake redmine:load_default_data
heroku open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment