Deploying a Rails application on HelioHost

From HelioHost Wiki
Revision as of 23:33, 29 April 2018 by Krydos (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

  1. Click here
  2. Type the app name into the box.
  3. Check (or leave unchecked) load on boot.
  4. Choose your application path. Default is /home/[username]/rails_apps/[appname]
  5. Choose the environment type: production or development.
  6. Click create.
  7. Wait for the rails app to be created, and then once it is click "go back."
  8. 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.
  9. 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.
  10. Locate your new rails app under the "Create a Rewrite" header, and click "Create Rewrite."
  11. 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.
  12. When you have the location you want your rails app to run from click "Save."
  13. 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.
  14. 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.
  15. Upload your files, and have fun developing in RoR.
Personal tools

Google AdSense