Deploying a Rails application on HelioHost
Deploying a Rails Application on HelioHost is relatively easy and, depending on the method of deployment, can be completed in less than thirty minutes. There are two methods that you can use to deploy your application, which vary only by the URL pattern that you wish to use.
Note: It is HIGHLY RECOMMENDED that you develop on your home computer before deploying your application on HelioHost. HelioNet is NOT RESPONSIBLE for data loss occurring due to failure to follow this recommendation. Please use Rails 2.3.18 for developing on your home computer.
- Click here
- Type the app name into the box.
- Check (or leave unchecked) load on boot.
- Choose your application path. Default is /home/[username]/rails_apps/[appname]
- Choose the environment type: production or development.
- Click create.
- Wait for the rails app to be created, and then once it is click "go back."
- Now your new application should show up under the "Available Ruby on Rails Applications" heading, but it will say "Not Running" so click the "Run" button under the Actions header.
- cPanel will start the application, and give you a "go back" link. Click this. When the page reloads a lot of the time it will still say that your application is still not running, but if you reload the page again it should show up shortly.
- Locate your new rails app under the "Create a Rewrite" header, and click "Create Rewrite."
- Here you can create a subdirectory for the rails app to run under, or you can select whatever subdomains, parked domains, or addon domains you have previously added.
- When you have the location you want your rails app to run from click "Save."
- Now when you go to the domain you selected/typed above you should see a brand new default rails app with the "Welcome aboard, you're riding Ruby on Rails!" If you see a 500 error, or a 503 error or 404 error, or something else it might mean you messed up on the above steps.
- Open up cPanel file manager, or FTP, or your favourite way of getting your files onto the server, and navigate to /home/[username]/rails_apps/[appname] or wherever you put your rails app in the above steps.
- Upload your files, and have fun developing in RoR.