Skip to content

Instantly share code, notes, and snippets.

View SeyamMs's full-sized avatar
🎯
Focusing

Mohammed Seyam SeyamMs

🎯
Focusing
View GitHub Profile
@SeyamMs
SeyamMs / nginx server config
Last active April 24, 2025 11:44
nginx server config for laravel herd site configuration file
file: benintrack.test.config
server {
listen 127.0.0.1:443 ssl;
...
location / {
rewrite ^ ".../resources/valet/server.php" last;
}
@SeyamMs
SeyamMs / scheduler
Last active January 18, 2025 17:05
laravel scheduler crontab and supervisor configuration file
# running the scheduler using crontabs (as mentioned in laravel docs)
add a cron job by opening the cron entry file with:
crontab -e
Then add the following entry to run the schedule every minute:
* * * * * cd /var/www/example.com && php artisan schedule:run >> /dev/null 2>&1
Examine the Status of the Cron Service:
@SeyamMs
SeyamMs / reverb
Last active January 18, 2025 16:03
laravel reverb server supervisor configuration file
after installing supervisor (if not see: https://gist.github.com/SeyamMs/2da8fcfa678633dcf6bb2a801d1f3633)
nano /etc/supervisor/conf.d/reverb.conf
[program:laravel-reverb]
process_name=%(program_name)s
command=php /var/www/example.com/artisan reverb:start
autostart=true
autorestart=true
stopasgroup=true
@SeyamMs
SeyamMs / supervisor
Last active January 18, 2025 14:25
Install supervisor on VPS with Ubuntu 24.04 and configure laravel worker
sudo apt update && sudo apt install supervisor
sudo systemctl status supervisor
nano /etc/supervisor/conf.d/queue.conf
[program:laravel-queue]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/example.com/artisan queue:work
autostart=true