I mostly followed the Tracks installation instructions and the Bluehost Ruby on Rails article.
- SSH to your Bluehost server.
- mkdir ~/rails # if not created
- cd ~/rails
- wget http://bsag.bingodisk.com/public/files/tracks-current.zip
- unzip tracks-current.zip
- cd ~/rails/tracks-1.7 # or whatever the current version is
- Login to your Bluehost control panel, and make a subdomain "tracks".
- cd ~/public_html/
- rm -fr tracks/ # Delete the directory that the cpanel just setup
- ln -s ~/rails/tracks-1.7/public tracks # setup a link to your tracks rails app
- cd ~/rails/tracks-1.7
- vi public/dispatch.fcgi # or whatever editor you prefer
- Change the she-bang line to #!/usr/bin/ruby
- vi config/environment.rb
- uncomment this line: ENV['RAILS_ENV'] = 'production'
- rake db:migrate RAILS_ENV=production # to setup your database
- browse to http://tracks.yourdomain.com and login!
No comments:
Post a Comment