Commit 93d4e5a0 authored by Alain Takoudjou's avatar Alain Takoudjou

stack/drupal: add cron

parent 9c78ab9e
...@@ -4,7 +4,7 @@ md5sum = ee73fe8e6b6959cfa137a02b9ce038f0 ...@@ -4,7 +4,7 @@ md5sum = ee73fe8e6b6959cfa137a02b9ce038f0
[template-drupal-instance] [template-drupal-instance]
filename = drupal-instance.cfg.in filename = drupal-instance.cfg.in
md5sum = eeef9228e93cea091f61761c2635ec75 md5sum = 680ba3cbecae8b25e677a1b6e7aacfc7
[template-settings.php] [template-settings.php]
filename = default.settings.php.in filename = default.settings.php.in
......
...@@ -36,7 +36,7 @@ output = ${directory:www}/docroot/sites/settings.local.php ...@@ -36,7 +36,7 @@ output = ${directory:www}/docroot/sites/settings.local.php
[drush-bin] [drush-bin]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
command-line = command-line =
${php-bin:wrapper-path} ${directory:www}/vendor/drush/drush/drush ${php-bin:wrapper-path} ${directory:www}/vendor/drush/drush/drush --root ${directory:www}
wrapper-path = ${directory:bin}/drush wrapper-path = ${directory:bin}/drush
environment = environment =
PATH=${directory:bin}:$PATH PATH=${directory:bin}:$PATH
...@@ -141,11 +141,22 @@ depends = ...@@ -141,11 +141,22 @@ depends =
${blt-bin:recipe} ${blt-bin:recipe}
${mysql-bin:recipe} ${mysql-bin:recipe}
${mysqldump-bin:recipe} ${mysqldump-bin:recipe}
${cron-entry-drupal:recipe}
[drupal-admin-passwd] [drupal-admin-passwd]
recipe = slapos.cookbook:generate.password recipe = slapos.cookbook:generate.password
storage-path = ${directory:etc}/.admin_pwd storage-path = ${directory:etc}/.admin_pwd
[cron-entry-base]
recipe = slapos.cookbook:cron.d
cron-entries = ${cron:cron-entries}
[cron-entry-drupal]
<= cron-entry-base
name = drupal-cron
frequency = */20 * * * *
command = cd ${apache-php-configuration:document-root} && ${directory:bin}/drush core-cron
[instance-parameter] [instance-parameter]
tmp-dir = ${directory:tmp} tmp-dir = ${directory:tmp}
trusted-host-list = trusted-host-list =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment