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
file: benintrack.test.config | |
server { | |
listen 127.0.0.1:443 ssl; | |
... | |
location / { | |
rewrite ^ ".../resources/valet/server.php" last; | |
} | |
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
# 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: |
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
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 |
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
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 |