Help - Search - Members - Calendar
Full Version: Ruby-On-Rails
Hostony Board > General Support > HowTo
MartinB
Hostony now offers ruby on rails support on some of its servers, this is a quick how-to on getting a Rails app running.

Login using FTP to your account, and create a directory on the home of your account ("appname") and upload your application there (folders app, config, public, etc)

Then:

1. First, you will need SSH access to your account, you will have to request this from support by emailing support@hostony.com or posting a trouble ticket. You will also need an SSH application such as Putty.

2. Now, login to your account using SSH and navigate to your home directory.


CODE
cd ~


3. Next create/update your Rails application by typing:


CODE
rails appname


4. Now, you will need to create a symbolic link to the public directory of this app. This will make it accessible on the web server.


CODE
ln -s ~/appname/public ~/public_html/appshortname


5. You will now be able to access your Rails app at http://yourdomain.com/appshortname/

6. If you want your Rails application to be accessible from the root directory, you can do the following. Only try this if you don’t have any other content in your public_html directory

CODE
mv public_html public_html_back
      ln -s ~/appname/public ~/public_html



Enjoy! smile.gif
Lehrer
A VERY useful post, Martin. Will reduce the number of tickets possibly smile.gif
MartinB
QUOTE(Lehrer @ Feb 3 2006, 03:30 PM) *
A VERY useful post, Martin. Will reduce the number of tickets possibly smile.gif



Ok! so now I can post more tickets! laugh.gif

I hope it will be usefull smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here