Skip to content
Snippets Groups Projects

Add a cron entry to run Laravel tasks

Merged Alexander Olofsson requested to merge add-cron into production
2 files
+ 13
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
0
@@ -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':
Loading