Skip to content

Commit 697f4e1

Browse files
Merge pull request #46 from NottingHack/enable-task-scheduler
Vagrant: Add cron job to enable the Task Scheduler
2 parents 63b0dd2 + 4534557 commit 697f4e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev/vagrant-config/scripts/laravel.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ php artisan db:seed
2525
# need to install node
2626
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
2727
apt-get install -y nodejs > /dev/null 2>&1
28-
npm install --global gulp-cli yarn
28+
npm install --global gulp-cli yarn
29+
30+
# Setup task scheduler cron
31+
line="* * * * * php /vagrant/artisan schedule:run >> /dev/null 2>&1"
32+
(crontab -u vagrant -l 2>/dev/null; echo "$line" ) | crontab -u vagrant -

0 commit comments

Comments
 (0)