You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn global add pm2
pm2 install pm2-logrotate
pm2 set pm2-logrotate:compress true
pm2 set pm2-logrotate:TZ "America/Sao_Paulo"
Make pm2 opens with system
pm2 startup systemd
Add pm2 app
# Start app
pm2 start --source-map-support npm --name "my-app" -- run "start:production"# Save current app list
pm2 save
Nginx Snippet
# change the port for your app portlocation / {proxy_passhttp://localhost:8080;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';proxy_set_header Host $host;proxy_cache_bypass$http_upgrade;}