jmz Posted January 29, 2013 Posted January 29, 2013 I am facing a problem with deploying my rails applications, presently, this is what I've done,Uploaded my Ruby on Rails application to [Home Directory]/depotSymbolic Link created "Link created successfully!/home/jmz/depot/public"RoR application's public folder contains .htaccess file with RailsBaseURI /depotMy info iscpanel user name: jmzmain domain: jmz30.tkserver: johnny Plelase help.
Krydos Posted January 30, 2013 Posted January 30, 2013 This is the process I use to deploy a rails application.Click http://johnny.heliohost.org:2082/frontend/x3/ror/index.htmlType 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. Let us know if this process works for you. There may be several valid ways to get a functional RoR application working on Heliohost, but this is the process that I have used and is proven to work. 1
Shinryuu Posted January 30, 2013 Posted January 30, 2013 Removed the old steps and put your steps on the RoR wiki page now.
jmz Posted January 30, 2013 Author Posted January 30, 2013 Krydos, it worked, Thanks! The rewrite part was important, at first attempt, i messed that up. Thanks a lot !!!
Krydos Posted January 30, 2013 Posted January 30, 2013 Glad your problem got solved! Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
Recommended Posts