Can't connect to default rails page.

20 views
Skip to first unread message

Phil Boyce

unread,
Sep 25, 2013, 11:17:56 AM9/25/13
to rubyonra...@googlegroups.com
Host: DigitalOcean
OS: Ubuntu 12.04
Ruby: 2.0.0p247
Rails: 3.2.0
* LAMP installed.
* Switched WEBrick out for Thin.

I'm trying to follow a tutorial online (hence the Rails 3.2.0 version).
I make my blog (rails new quick_blog -T). I then run 'rails server' and
I can see it start fine at the console.

I then try and hit the IP:3000 and get nothing. If I hit the IP then I
get the default Apache page.

Can anyone offer some assistance?

phoyce

--
Posted via http://www.ruby-forum.com/.

Prashant

unread,
Sep 25, 2013, 12:51:24 PM9/25/13
to rubyonra...@googlegroups.com

Walter Lee Davis

unread,
Sep 25, 2013, 1:34:02 PM9/25/13
to rubyonra...@googlegroups.com
Usually, the :3000 is when you are hosting the site on your development machine, and you can serve with Thin or Webrick from localhost:3000 after starting the server on your console. But if you do that on your server, the only "person" who will be able to network to it will be another user on the server itself.

If you're just doing a tutorial, why get a server involved at all? Just host it on your Mac, start the server from the terminal as you have done, and open up a browser to localhost:3000.

If you want to share your work with others, then use Passenger on your Digital Ocean machine, or use Heroku or another one-button hosting provider for that.

Walter
> --
> 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/a3bd7883dbd9b0ecdcf3058d67418ed9%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Walter Lee Davis

unread,
Sep 29, 2013, 1:45:48 PM9/29/13
to rubyonra...@googlegroups.com
If you are running your Web browser on the server, then certainly, that would be the path to the server. But localhost is always _your_ computer. The one where you are running the browser, in this context.

Walter
> --
> 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/b7f25885-02f5-4ead-8f6e-7c323ab787ee%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages