Skip to content
Snippets Groups Projects
Commit 138aca9f authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Add a cron entry to run Laravel tasks

parent 77073b0a
No related branches found
No related tags found
1 merge request!20Add a cron entry to run Laravel tasks
Pipeline #3701 failed
......@@ -155,6 +155,18 @@ class skadereg(
subscribe => Vcsrepo['/var/www/skadereg'],
}
cron { 'artisan schedule:run':
minute => '*',
hour => '*',
date => '*',
month => '*',
weekday => '*',
user => 'apache',
group => 'skadereg',
environment => [ 'PATH=/opt/rh/rh-php56/root/usr/bin:/usr/bin:/bin', 'SHELL=/bin/bash' ],
command => 'php /var/www/skadereg/artisan schedule:run &> /dev/null',
}
$db_name = 'homestead'
class { '::mysql::server':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment