Ruby on Rails 3.2 support on CPanel servers
Posted by - NA - on 24 July 2013 05:59 AM
cPanel does not support Ruby 1.9 or Ruby on Rails 3.2, only Ruby 1.8 and Rails 2.3. It means that you cannot create and manage RoR 3.2 applications using the Ruby on Rails section in cPanel - everything will have to be done using the command line instead.
In order to add Rails 3.2 applications on your account, you need to login via SSH client and prepare the environment by issuing the following commands:
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
These commands will install Ruby 1.9 and Rails 3.2.13 environment on your account. Now you can create your Rails 3.2 application:
rails new hello_world
At the final step, you should point your site, subdomain, or add-on domain web root to your application:
mv ~/public_html ~/public_html.bak
Done, your Rails 3.2 application is ready.
1. How to restart your Rails application without restarting Apache:
Application will be restarted next time you open it in browser.
2. Using the production environment automatically