BIP KB:
How To Install Ruby On Rails On Ubuntu 12.04 LTS
Install Ruby IntroductionThis tutorial will show you how to install Ruby Version Manager (RVM) which can be used to install Ruby, and then RubyGems, which can be used to install the Ruby on Rails framework. Finally, we’ll create an empty application and see it run: |
![]() |
SSH to your Pod as root, and then run the following:
root@rubyserver:~# \curl -L https://get.rvm.io | bash -s stable root@rubyserver:~# source /etc/profile.d/rvm.sh root@rubyserver:~# rvm requirements root@rubyserver:~# rvm install 1.9.3 root@rubyserver:~# rvm use 1.9.3 --default root@rubyserver:~# rvm rubygems current root@rubyserver:~# gem install rails
The last step could take a few minutes to complete.
Once finished, you can test creating, and then running, a new application like this:
root@rubyserver:~# rails new Hello root@rubyserver:~# cd Hello root@rubyserver:~# rails server
Now, in your web browser, you should be able to go to http://youripaddress:3000/ and see the Ruby on Rails welcome screen.
Tags: Security, ssh, centos, keys, gem, Programming Languages, ror, ruby, ruby on rails, rvm
Spin Up A VPS Server In No Time Flat
Simple Setup
Full Root Access
Straightforward Pricing
DEPLOY A SECURE VPS SERVER TODAY!Leave a Reply
Feedbacks
![]() This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. |