Jan
07
07
1. Login with SSH. 2. Make sure you are in /home/username using “pwd”
cpaneluser@server [~]# pwd
/home/cpaneluser
/home/cpaneluser
3. Generate the rails application with:
rails myapp
4. Chmod 755 myapp/public
cd myapp
chmod 755 public
cd ..
chmod 755 public
cd ..
5. Now you need to link the appliction to the domain.
If you want to point the appliction to the root of the domain (ex. www.domain.com):
mv public_html public_html.back
ln -s myapp/public public_html
ln -s myapp/public public_html
Or if you want to point to folder of the domain (ex. www.domain.com/myfolder)
cpaneluser@server [~]# cd public_html
cpaneluser@server [~]# ln –s ../myapp/public myfolder
cpaneluser@server [~]# ln –s ../myapp/public myfolder

RECENT COMMENTS