Merge pull request #340 from philtrep/workspace-cron

Simple cron jobs
This commit is contained in:
Mahmoud Zalt
2016-10-03 23:24:31 -04:00
committed by GitHub
3 changed files with 21 additions and 0 deletions

View File

@ -60,6 +60,7 @@ It's like Laravel Homestead but for Docker instead of Vagrant.
- [Production](#Production)
- [Setup Laravel and Docker on Digital Ocean](#Digital-Ocean)
- [Misc](#Misc)
- [Cron jobs](#CronJobs)
- [Use custom Domain](#Use-custom-Domain)
- [Enable Global Composer Build Install](#Enable-Global-Composer-Build-Install)
- [Install Prestissimo](#Install-Prestissimo)
@ -936,6 +937,19 @@ To controll the behavior of xDebug (in the `php-fpm` Container), you can run the
<br>
<a name="CronJobs"></a>
### Adding cron jobs
You can add your cron jobs to `workspace/crontab/root` after the `php artisan` line.
```
* * * * * php /var/www/laravel/artisan schedule:run >> /dev/null 2>&1
# Custom cron
* * * * * root echo "Every Minute" > /var/log/cron.log 2>&1
```
<a name="Use-custom-Domain"></a>
### Use custom Domain (instead of the Docker IP)