Skip to content
avinash edited this page Nov 1, 2011 · 3 revisions

Heroku

Installing Tracks 2.0 or newer on Heroku is fairly simple, here are the steps to get tracks working on Heroku (steps for a non-programmer…):

  1. Unpack the application (I used “git clone,” but unzipping will do just fine).
  2. Configure your Tracks instance
    1. Navigate to config/environments/production.rb and change the cache settings to “false” (“config.cache_classes” remains “true”, whereas “config.action_controller.perform-caching” is set to “false”)
    2. Copy config/site.yml.tmpl to config/site.yml and change its contents (documented by the comments)
    3. Change the Gemfile and replace the line gem "sqlite3" with gem "pg" and run bundle install
  3. Comment out some of the items in the .gitignore file. I put a hash— # — at the beginning of each of these lines:
    #config/site.yml
  4. Add the created site.yml with git add config/site.yml and commit everything with git -a
  5. Create a Heroku app on the Bamboo stack with heroku create {NAME} --stack bamboo-ree-1.8.7
  6. Run heroku config:add BUNDLE_WITHOUT="development:test:selenium" so that only gems needed for production are installed on Heroku
  7. Push the commit with git push heroku master
  8. Run the migrations on Heroku with heroku run rake db:migrate
  9. Open the application with heroku open

Clone this wiki locally