Skip to content

Instantly share code, notes, and snippets.

View devhau's full-sized avatar
😀
Working from home

Dev Hau devhau

😀
Working from home
View GitHub Profile
@devhau
devhau / laravel-sokeio-pm2.yml
Last active December 16, 2024 11:04
laravel-sokeio-pm2.yml
apps:
- name: laravel-sokeio-octane-pm2
script: artisan
exec_mode: fork
interpreter: php
instances: 1
args:
- octane:start
- --server=swoole
- --max-requests=1000
@devhau
devhau / laravel-octane-pm2.md
Created December 16, 2024 04:35 — forked from mahkassem/laravel-octane-pm2.md
Laravel Octane PM2 Configuration

How to use

  • 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