DeployOnSite5
Follow these instructions to deploy Railtrackr on Site5.com hosting.
First, freeze your Railtrackr installation. Go into the base folder where the rails application lives and type this command in your terminal:rake rails:freeze:gemsThen, create an archive of your application (let’s suppose that the application source code lives within the
railtrackr/ folder ) and copy it over to your hosting space:
tar cvf railtrackr.tar railtrackr/ gzip railtrackr.tar scp railtrackr.tar.gz yourname@yourdomain.com:Login into your hosting space via
ssh and unpack the application :
tar xvfz railtrackr.tar.gz
Then you have to modify a few settings to make it work. First, chmod everything to 755. For some reason unknown to me, this is required by Site5.com, in order to make your applications work properly.
chmod -R 755 railtrackr/
Then change the shebang in the following files:
railtrackr/public/dispatch.rbrailtrackr/public/dispatch.cgirailtrackr/public/dispatch.fcgi
So that the first line of each file reads like:
#!/usr/bin/ruby ... other lines ...Then move your application to production mode, by editing the file
railtrackr/config/environment.rb and decommenting the following line :
ENV['RAILS_ENV'] ||= 'production'Finally, link the Railtrackr
public folder to your domain webroot :
$ cd $ mv public_html public_html_moved $ ln -s /home/yourname/railtrackr/public public_html
Railtrackr should be now ready and running on your website!
Space Home