部署

建议通过Supervisord监管主进程,前提是不能加-d选项并且设置swoole.daemonizefalse

  1. [program:laravel-s-test]
  2. command=/user/local/bin/php /opt/www/laravel-s-test/bin/laravels start -i
  3. numprocs=1
  4. autostart=true
  5. autorestart=true
  6. startretries=3
  7. user=www-data
  8. redirect_stderr=true
  9. stdout_logfile=/opt/www/laravel-s-test/storage/logs/supervisord-stdout.log