Getting started

22 views
Skip to first unread message

McHenry

unread,
Aug 4, 2014, 9:22:56 PM8/4/14
to rubyonra...@googlegroups.com
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.

Walther Diechmann

unread,
Aug 5, 2014, 5:23:45 AM8/5/14
to rubyonra...@googlegroups.com
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/44e97532-8a04-46c0-ab00-ca469331d1e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Tobin

unread,
Aug 5, 2014, 10:25:30 AM8/5/14
to rubyonra...@googlegroups.com
To work in development mode, Apache isn't needed. Just run the  Rails server:

$ rails s

Then your browser finds it:

Reply all
Reply to author
Forward
0 new messages