bundle exec cap production deploy
sudo /opt/nginx/sbin/nginx
ps auxw | grep nginx
sudo kill 25817
sudo kill $(cat /opt/nginx/logs/nginx.pid)
sudo /opt/nginx/sbin/nginx
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