Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
PostPosted: Thu Apr 16, 2009 10:14 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
If you have an existing RoR application, simply create a new subdomain, with a new folder name specified, for one of your domains through the Domains page and then upload the application to that folder via FTP. When you visit the site, your RoR application should automatically execute.

If you've never used RoR before, you can create an example Ruby on Rails application by following these instructions:

1. SSH in to the webserver and run these commands from the home folder:

Code:
rails hello
cd hello
ruby script/generate controller hello
echo "Hello world" > app/views/hello/index.rhtml

2. Create a new subdomain through the Domains page in your control panel, for instance "hello.yourdomain.com". Point its Folder to "hello/public"

3. Visit http://hello.yourdomain.com/hello. The rails app will automatically be detected and your "Hello world" should appear.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
It is currently Fri May 24, 2013 12:36 am
Powered by phpBB® Forum Software © phpBB Group