Monday, March 7, 2011

[Rails] Unicorn server works for 2 minutes, then crashes?

Hi,

I'm trying to run my rails 3 application with webrick or unicorn. I
have ssh access so I can start the server that way, instead of doing
it with cPanel (which uses Mongrel).

When I type 'rails s -p 12003 -d' for webrick or 'unicorn_rails -p
12003 -D' for unicorn, I can access my rails app at domainname/
rails_app_name. I get the rails standard index page.
This only works for about 2 minutes. After that, the server is
offline.

I have a deployment server here, in my local network. And when doing
the exact same command 'rails s -D' (so on the default port) the site
just keeps running for hours. Works like a charm.

So what could be the problem? Is the application server crashing on my
webhost? When I open the log files it's just blank.

Thanks,
Mathew

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate