cd "/var/www/code2travel.com/current"
source "/etc/profile.d/chruby.sh"
bin/rails assets:precompile
tail -f "/var/www/code2travel.com/shared/log/production.log"
tail -f "/var/www/code2travel.com/shared/log/puma.stdout.log"
tail -f "/var/www/code2travel.com/shared/log/puma.stderr.log"
tail -f "/var/www/code2travel.com/shared/log/sidekiq.log"
pumactl --config "/var/www/code2travel.com/current/config/puma/production.rb" stop
pumactl --config "/var/www/code2travel.com/current/config/puma/production.rb" start
pumactl --config "/var/www/code2travel.com/current/config/puma/production.rb" restart
cat /etc/nginx/sites-enabled/code2travel.com
systemctl status nginx
systemctl is-enabled nginx
systemctl is-active nginx
systemctl reload nginx
systemctl start nginx
systemctl stop nginx
systemctl restart nginx
tail -f "/var/log/nginx/access.log"
tail -f "/var/log/nginx/error.log"
rm -rf /var/www/code2travel.com/backups
Check which process are using ports
lsof -wni tcp:80
lsof -wni tcp:443
lsof -wni tcp:3000