Setting up a Ruby on Rails App on Ubuntu

Setting up a Ruby on Rails App on Ubuntu

Last updated:

Install RVM:

see how here: using rvm on linux

install and select a ruby version

$ rvm install ruby-head
$ rvm use ruby-head

ruby-head is just an example, use any version you wish.

Install rails gem

$ gem install rails

Create a project:

Replace <appname> with the name you want your new app to have.

$ rails new <appname>
$ cd <appname>

Install a javascript environment

(node JS is just an example)

$ sudo apt-get install nodejs

Start the built-in server:

$ rails server

References