# Trouble deploying with cap, nginx, thin, git

**URL:** <https://www.ruby-forum.com/t/trouble-deploying-with-cap-nginx-thin-git/167067>\
**Category:** Rails\
**Created:** [May 3, 2009, 8:04am UTC](https://www.ruby-forum.com/t/trouble-deploying-with-cap-nginx-thin-git/167067 "2009-05-03T08:04:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ciscor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c0e974/32.png) [@ciscor](https://www.ruby-forum.com/u/ciscor)\
**Post date:** [May 3, 2009, 8:04am UTC](https://www.ruby-forum.com/t/trouble-deploying-with-cap-nginx-thin-git/167067/1 "2009-05-03T08:04:43Z")

</div>

I’ve been following along with these Slicehost tutorials on deploying a  
Rails app:  
[http://articles.slicehost.com/2009/2/20/ubuntu-intrepid-thin-web-server-for-ruby](http://articles.slicehost.com/2009/2/20/ubuntu-intrepid-thin-web-server-for-ruby)  
[http://articles.slicehost.com/2009/3/13/ubuntu-intrepid-nginx-rails-and-thin](http://articles.slicehost.com/2009/3/13/ubuntu-intrepid-nginx-rails-and-thin)

but have also used Thin and Capistrano and am having a real tough time.

I’ve managed to get the files from my local computer up on the slice  
with Capistrano, but when I run “sudo /etc/init.d/thin start” and check  
out the domain all I get is “502 Bad Gateway nginx/0.6.32”. Then when I  
run “sudo /etc/init.d/thin stop” I get these errors:

“[stop] /etc/thin/linksyncer.yml …  
Stopping server on 0.0.0.0:3000 …  
Can’t stop process, no PID found in tmp/pids/thin.3000.pid  
Stopping server on 0.0.0.0:3001 …  
Can’t stop process, no PID found in tmp/pids/thin.3001.pid  
Stopping server on 0.0.0.0:3002 …  
Can’t stop process, no PID found in tmp/pids/thin.3002.pid”

There also seems to be some trouble with Hpricot. In development.log I  
have this error: " Status: 500 Internal Server Error no such file to  
load – Hpricot" even though I’ve run sudo gem install hpricot.

Can anyone see where I’m messing up? Or perhaps have a link to a great  
step-by-step deployment tutorial? Thanks!
