Ad
Laravel Forge Scheduler - Run Command
When using Laravel Forge's scheduler, you can trigger all the cronjob by e.g. running:
php /home/forge/default/artisan schedule:run
However, when wanting to execute a sole command, it will fail and says "fatal: not a git repository (or any of the parent directories): .git".
Via SSH, I would execute the command like this:
ssh to the server
cd path/
php artisan command:name
So how would I declare it in Laravel Forge's scheduler?
php /home/forge/default/artisan command:name
Does not work.
Ad
Answer
The solution is simply to remove the slash after /path/artisan
- it is /path
artisan.
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS - Conditionally Load a Different Page
- → Make a Laravel collection into angular array (octobercms)
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
- → Validating fileupload(image Dimensions) in Backend Octobercms
- → OctoberCMS Fileupload completely destroys my backend
- → How do I call the value from another backed page form and use it on a component in OctoberCms
Ad