December 4, 2008 – 12:03 am
Deploying a rails application on Bluehost for the first time is not a fun task, especially if you are fairly new to rails development. I hope the following details may save someone some of the hair-loss inducing troubles I experienced. Having said that I'm happy with Bluehost thus far. I have a Word Press blog, rails application, and PHP application all running via Bluehost.
mkdir ~/rails
cd ~/rails
rails app_name
cd app_name
From within cPanel, select Sub-Domains and create a new sub-domain with the same name as the rails application folder you just created.
cd ~/public_html/
rm -r app_name
ln -s /home/YOUR_USERNAME/rails/first/public app_name
ln -s ~/rails/app_name/public app_name
go the website -> it works!
Now db...
How to create a rails migration for an existing database
I had done things a little backwards with my first rails application so I wanted to create a rails migration file from my existing database (rather than the other way around). I did this as follows:
$ rake -T ...
Posted in Uncategorized | 2 Comments »