Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 558 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 558 Bytes

Ruby on Rails todo-app with Capistrano, Passenger and Nginx

Capistrano

Automatic Deployment:

bundle exec cap production deploy

Nginx

Start Nginx:

sudo /opt/nginx/sbin/nginx

Shutdown by killing its PID

ps auxw | grep nginx
sudo kill 25817

Restarting Nginx

sudo kill $(cat /opt/nginx/logs/nginx.pid)
sudo /opt/nginx/sbin/nginx

Important fixes

If bundle exec rails s gives error: Address already in user - bind(2)
Fix:
lsof -wni tcp:3000
kill -9 PID - PID is the PID from previous command