Here I want to share some experience about deploying rails 2.x on Bluehost. On the first look assignment seem very straightforward, but beware of some underwater rocks here.
You probably will start from exploring Bluehost Control Panel, Googling some info and find next link http://helpdesk.bluehost.com/index.php/kb/article/000207. Instructions are all good, but environment seems to be broken and if you go to http://first.yourdomain.com/people - You’ll get an error. To discover an error you need to understand how app is deployed.
From what I read FastCGI is not the best or even ok deploying method. But we haven’t anything else here. So to get it working you must put 2 main files in public folder of your app:
Replace /home1/user with your user directory. To check that application is running type next:
If you deploying your first application on this Bluehost account script will fail, because you haven’t fcgi gem.
Somehow fast-cgi is not installed by default so we need to install it manually in user home directory
If everything ok fast-cgi will be installed in home/src directory, now we can install fcgi gem
Now you can test if your app is working
Few additions that can help if something goes wrong. First look at your home directory, there is ruby and rubygems directory, you might want to have non-system-wide ruby installation.
For that purpose you need to add next lines to the end of $HOME/.bashrc
And to config/environment.rb(at the begining of file):
Comments