- Add laravel-octane-pm2.yml in laravel app base directory
- start using
pm2 start laravel-octane-pm2.yml - Enable pm2 to auto start your app using
pm2 save
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apps: | |
| - name: laravel-sokeio-octane-pm2 | |
| script: artisan | |
| exec_mode: fork | |
| interpreter: php | |
| instances: 1 | |
| args: | |
| - octane:start | |
| - --server=swoole | |
| - --max-requests=1000 |