forked from TracksApp/tracks
-
Notifications
You must be signed in to change notification settings - Fork 0
Heroku
avinash edited this page Nov 1, 2011
·
3 revisions
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…):
- Unpack the application (I used “git clone,” but unzipping will do just fine).
- Configure your Tracks instance
- Navigate to
config/environments/production.rband change the cache settings to “false” (“config.cache_classes” remains “true”, whereas “config.action_controller.perform-caching” is set to “false”) - Copy
config/site.yml.tmpltoconfig/site.ymland change its contents (documented by the comments) - Change the
Gemfileand replace the linegem "sqlite3"withgem "pg"and runbundle install
- Navigate to
- 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 - Add the created site.yml with
git add config/site.ymland commit everything withgit -a - Create a Heroku app on the Bamboo stack with
heroku create {NAME} --stack bamboo-ree-1.8.7 - Run
heroku config:add BUNDLE_WITHOUT="development:test:selenium"so that only gems needed for production are installed on Heroku - Push the commit with
git push heroku master - Run the migrations on Heroku with
heroku run rake db:migrate - Open the application with
heroku open