Skip to content
Snippets Groups Projects
Commit 8fed599a authored by Adrian Palmquist's avatar Adrian Palmquist
Browse files

Merge branch 'add-cron' into 'production'

Add a cron entry to run Laravel tasks

See merge request pm-liuit/skadereg!20
parents 77073b0a 603175f1
No related branches found
No related tags found
1 merge request!20Add a cron entry to run Laravel tasks
Pipeline #3699 passed
...@@ -155,6 +155,18 @@ class skadereg( ...@@ -155,6 +155,18 @@ class skadereg(
subscribe => Vcsrepo['/var/www/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' $db_name = 'homestead'
class { '::mysql::server': class { '::mysql::server':
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"license": "TBD", "license": "TBD",
"source": "https://gitlab.it.liu.se/pm-liuit/skadereg/tree/production", "source": "https://gitlab.it.liu.se/pm-liuit/skadereg/tree/production",
"project_page": "https://gitlab.it.liu.se/pm-liuit/skadereg", "project_page": "https://gitlab.it.liu.se/pm-liuit/skadereg",
"issues_url": null, "issues_url": "https://gitlab.it.liu.se/pm-liuit/skadereg/issues",
"dependencies": [ "dependencies": [
{ "name": "puppetlabs-stdlib", "version_requirement": ">= 1.0.0" } { "name": "puppetlabs-stdlib", "version_requirement": ">= 1.0.0" }
], ],
......
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