Ensure that there is only one nginx config since you are using port 80 and no 
server_names defined. Ie remove the default conf in sites-enabled

On May 14, 2013, at 4:06 PM, Hassan Schroeder <hassan.schroe...@gmail.com> 
wrote:

> On Tue, May 14, 2013 at 3:54 PM, Makru <makru1...@gmail.com> wrote:
>> Post.find (:all)
>> answers:
>> Post Load (1.2ms) ....
>> =>nil
>> Is working under development and showing all entries. I assume under
>> production the table is there, but no entry.
>> app.get 'posts/new'
>> answers:
>> =>200
>> Same answer as under development.
>> But the good thing, i know now something about rails console :-)
> 
> OK, so your app apparently is basically working. But (restating) if
> you try to access /posts/new from a browser you get a 404, right?
> 
> What happens if you access the unicorn instance directly, from the
> server command line?
> 
> If the above works, then the problem is somewhere between nginx
> and unicorn; you should find your nginx log(s) and see what happens
> at that point.
> 
> I would open up 3-4 windows side-by-side and tail -f the nginx
> access, error, and unicorn log(s) -- don't remember if it has both
> access and error logs -- and watch in real time.
> 
> -- 
> Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
> http://about.me/hassanschroeder
> twitter: @hassan
> 
> -- 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to capistrano@googlegroups.com
> * To unsubscribe from this group, send email to 
> capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to capistrano+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to