Getting started

OK, I am lost…

I have installed both Ruby & Rails.

$ ruby -v

ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]

$ rails -v

Rails 4.1.4

I have created a new application and linked it to the document root:

rails new blog

me@server:/var/www/html$ ls -l

total 12

lrwxrwxrwx 1 root root 16 Aug 5 10:37 blog → /home/me/blog

-rw-r–r-- 1 root root 11510 Jun 28 12:32 index.html

me@server:/var/www/html$

When I navigate to 192.168.1.5 I see the default Apache welcome page

When I navigate to 192.168.1.5/blog I see a directory listing for my blog application

I am using Ubuntu Server 14.04

Any help would be greatly appreciated.

You need to install PhusionPassenger (or some other means of forwarding your blog routes to the rails ‘engine’) Apache does not - out of the box - know how to execute ruby scripts (Rails)

cheers

Walther

To work in development mode, Apache isn’t needed. Just run the Rails server:

$ rails s

Then your browser finds it:

http://192.168.1.51:3000/blog