BIP KB:
How To Install Ruby On Rails On Ubuntu 12.04 LTS


img

Install Ruby Introduction

This 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:

install Ruby on rails development on a VPS

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: , , , , , , , , ,

Spin up a VPS server in no time flat

Simple setup. Full root access. Straightforward pricing.

DEPLOY VPS SERVER

Leave a Reply



Feedbacks