Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/30/13 in all areas

  1. This is the process I use to deploy a rails application. Click http://johnny.heliohost.org:2082/frontend/x3/ror/index.html 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. 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 point
  2. No, for starters the superglobal arrays store data in key=&amp;amp;--#62;value pairs, so ['$var'] is not a valid key index. Second the username is being stored in the $_SESSION superglobal, not $_POST, what you could do is add a hidden input like: <input type="hidden" name="comment_by" value="<?php echo $myusername;?>"/> then access it as $_POST['comment_by'];
    1 point
×
×
  • Create New...