temwa
2 months ago
1161
5
Forge

Adding A Bash Script In Laravel Forge Scheduler

Posted 2 months ago by temwa

I would like to add a bash script that periodically deletes logs on Laravel Forge. I have placed the script in /home/forge/mysite.com/scripts/delete_logs.sh. How do I reference this file in the Forge Sheduler. The default command in the sheduler is as below;

php /home/forge/default/artisan schedule:run

How do I modify this command so that the sheduler may reference my Bash script?

Thanks.

Please sign in or create an account to participate in this conversation.