Monday, April 20, 2009

Installing Tracks on Bluehost

I have a Bluehost account and thought it would be nice to try out Tracks.

I mostly followed the Tracks installation instructions and the Bluehost Ruby on Rails article.

  1. SSH to your Bluehost server.
  2. mkdir ~/rails # if not created
  3. cd ~/rails
  4. wget http://bsag.bingodisk.com/public/files/tracks-current.zip
  5. unzip tracks-current.zip
  6. cd ~/rails/tracks-1.7 # or whatever the current version is
  7. Login to your Bluehost control panel, and make a subdomain "tracks".
  8. cd ~/public_html/
  9. rm -fr tracks/ # Delete the directory that the cpanel just setup
  10. ln -s ~/rails/tracks-1.7/public tracks # setup a link to your tracks rails app
  11. cd ~/rails/tracks-1.7
  12. vi public/dispatch.fcgi # or whatever editor you prefer
  13. Change the she-bang line to #!/usr/bin/ruby
  14. vi config/environment.rb
  15. uncomment this line: ENV['RAILS_ENV'] = 'production'
  16. rake db:migrate RAILS_ENV=production # to setup your database
  17. browse to http://tracks.yourdomain.com and login!
I opted to use the default DB of sqlite, since I am just evaluating Tracks. You could setup MySQL too

No comments:

Post a Comment