diff --git a/archived/contentacms/files/.platform.app.yaml b/archived/contentacms/files/.platform.app.yaml index a83fce8d7..871e53938 100644 --- a/archived/contentacms/files/.platform.app.yaml +++ b/archived/contentacms/files/.platform.app.yaml @@ -145,7 +145,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/archived/drupal7-vanilla/files/.platform.app.yaml b/archived/drupal7-vanilla/files/.platform.app.yaml index c00076a4b..9111f5eed 100644 --- a/archived/drupal7-vanilla/files/.platform.app.yaml +++ b/archived/drupal7-vanilla/files/.platform.app.yaml @@ -108,4 +108,5 @@ hooks: crons: drupal: spec: '*/20 * * * *' - commands: 'cd public ; drush core-cron' + commands: + start: 'cd public ; drush core-cron' diff --git a/archived/drupal7/files/.platform.app.yaml b/archived/drupal7/files/.platform.app.yaml index 27694264e..c997584d9 100644 --- a/archived/drupal7/files/.platform.app.yaml +++ b/archived/drupal7/files/.platform.app.yaml @@ -108,4 +108,5 @@ hooks: crons: drupal: spec: '*/20 * * * *' - commands: 'cd public ; drush core-cron' + commands: + start: 'cd public ; drush core-cron' diff --git a/archived/mautic2/files/.platform.app.yaml b/archived/mautic2/files/.platform.app.yaml index 1ec56a43e..80151f8b4 100644 --- a/archived/mautic2/files/.platform.app.yaml +++ b/archived/mautic2/files/.platform.app.yaml @@ -97,10 +97,13 @@ web: cron: mautic-segments: spec: '*/7 * * * *' - commands: php app/console mautic:segments:update + commands: + start: php app/console mautic:segments:update mautic-campaign-update: spec: '*/11 * * * *' - commands: php app/console mautic:campaigns:update + commands: + start: php app/console mautic:campaigns:update mautic-campaign-actions: spec: '*/5 * * * *' - commands: php app/console mautic:campaigns:trigger + commands: + start: php app/console mautic:campaigns:trigger diff --git a/templates/akeneo/files/.platform.app.yaml b/templates/akeneo/files/.platform.app.yaml index d250ac358..0a77bfa8f 100644 --- a/templates/akeneo/files/.platform.app.yaml +++ b/templates/akeneo/files/.platform.app.yaml @@ -153,19 +153,24 @@ mounts: crons: refresh: spec: '30 1 * * *' - commands: 'php bin/console pim:versioning:refresh' + commands: + start: 'php bin/console pim:versioning:refresh' purge_versioning: spec: '30 2 * * *' - commands: 'php bin/console pim:versioning:purge –more-than-days 90' + commands: + start: 'php bin/console pim:versioning:purge –more-than-days 90' update_data: spec: '1 * * * *' - commands: 'php bin/console akeneo:connectivity-audit:update-data' + commands: + start: 'php bin/console akeneo:connectivity-audit:update-data' purge_jobs: spec: '20 0 1 * *' - commands: 'php bin/console akeneo:batch:purge-job-execution' + commands: + start: 'php bin/console akeneo:batch:purge-job-execution' aggregate: spec: '30 4 * * *' - commands: 'php bin/console pim:volume:aggregate' + commands: + start: 'php bin/console pim:volume:aggregate' workers: queue: diff --git a/templates/drupal8-govcms8/files/.platform.app.yaml b/templates/drupal8-govcms8/files/.platform.app.yaml index 174717088..c7055641e 100644 --- a/templates/drupal8-govcms8/files/.platform.app.yaml +++ b/templates/drupal8-govcms8/files/.platform.app.yaml @@ -147,7 +147,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd docroot ; drush core-cron' + commands: + start: 'cd docroot ; drush core-cron' source: operations: diff --git a/templates/drupal8-multisite/files/.platform.app.yaml b/templates/drupal8-multisite/files/.platform.app.yaml index 65651beac..46ffb9cfb 100644 --- a/templates/drupal8-multisite/files/.platform.app.yaml +++ b/templates/drupal8-multisite/files/.platform.app.yaml @@ -149,7 +149,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/templates/drupal8-opigno/files/.platform.app.yaml b/templates/drupal8-opigno/files/.platform.app.yaml index bf31e2dfd..1397242d9 100644 --- a/templates/drupal8-opigno/files/.platform.app.yaml +++ b/templates/drupal8-opigno/files/.platform.app.yaml @@ -164,7 +164,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/templates/drupal8/files/.platform.app.yaml b/templates/drupal8/files/.platform.app.yaml index 8cb019653..991049b7f 100644 --- a/templates/drupal8/files/.platform.app.yaml +++ b/templates/drupal8/files/.platform.app.yaml @@ -147,7 +147,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/templates/drupal9-multisite/files/.platform.app.yaml b/templates/drupal9-multisite/files/.platform.app.yaml index 848777a53..9a810f558 100644 --- a/templates/drupal9-multisite/files/.platform.app.yaml +++ b/templates/drupal9-multisite/files/.platform.app.yaml @@ -150,7 +150,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/templates/drupal9/files/.platform.app.yaml b/templates/drupal9/files/.platform.app.yaml index 1499d760b..649a4eb46 100644 --- a/templates/drupal9/files/.platform.app.yaml +++ b/templates/drupal9/files/.platform.app.yaml @@ -148,7 +148,8 @@ crons: # Run Drupal's cron tasks every 19 minutes. drupal: spec: '*/19 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' source: operations: diff --git a/templates/gatsby-drupal/files/drupal/.platform.app.yaml b/templates/gatsby-drupal/files/drupal/.platform.app.yaml index 98817ab1d..01dbf8fbd 100644 --- a/templates/gatsby-drupal/files/drupal/.platform.app.yaml +++ b/templates/gatsby-drupal/files/drupal/.platform.app.yaml @@ -128,4 +128,5 @@ web: crons: drupal: spec: '*/20 * * * *' - commands: 'cd web ; drush core-cron' + commands: + start: 'cd web ; drush core-cron' diff --git a/templates/laravel/files/.platform.app.yaml b/templates/laravel/files/.platform.app.yaml index c60bc4ab8..643aaa95d 100644 --- a/templates/laravel/files/.platform.app.yaml +++ b/templates/laravel/files/.platform.app.yaml @@ -95,14 +95,16 @@ crons: # Run Laravel's scheduler every 5 minutes, which is often as crons can run on Professional plans. scheduler: spec: '*/5 * * * *' - commands: 'php artisan schedule:run' + commands: + start: 'php artisan schedule:run' # Run Laravel's queue worker task every 9 minutes queue: spec: '*/9 * * * *' # Allow the worker to run for up to 5 minutes. That prevents # a long-running queue from blocking a deploy for more than 5 # minutes. - commands: 'php artisan queue:work --max-time=300' + commands: + start: 'php artisan queue:work --max-time=300' # If you have an especially large queue, you may be better off using a worker. # If so, comment out the `queue` cron entry and uncomment this instead. Note that diff --git a/templates/magento2ce/files-jwwsh/.platform.app.yaml b/templates/magento2ce/files-jwwsh/.platform.app.yaml index bd700e9c6..a5237489a 100644 --- a/templates/magento2ce/files-jwwsh/.platform.app.yaml +++ b/templates/magento2ce/files-jwwsh/.platform.app.yaml @@ -72,13 +72,16 @@ hooks: crons: magento: spec: "*/5 * * * *" - commands: bash -c 'for group in $(grep -shoP "(?<=)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done' + commands: + start: bash -c 'for group in $(grep -shoP "(?<=)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done' logrotate: spec: "45 1 * * *" - commands: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log + commands: + start: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log reportcleanup: spec: "0 2 * * *" - commands: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete + commands: + start: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete # The configuration of app when it is exposed to the web. web: diff --git a/templates/magento2ce/files-old/.platform.app.yaml b/templates/magento2ce/files-old/.platform.app.yaml index 00fa96f62..b6176447a 100644 --- a/templates/magento2ce/files-old/.platform.app.yaml +++ b/templates/magento2ce/files-old/.platform.app.yaml @@ -66,7 +66,8 @@ hooks: crons: magento: spec: "* * * * *" - commands: "php bin/magento cron:run" + commands: + start: "php bin/magento cron:run" # The configuration of app when it is exposed to the web. web: diff --git a/templates/magento2ce/files/.platform.app.yaml b/templates/magento2ce/files/.platform.app.yaml index a9dbbb5ce..e1bb62873 100644 --- a/templates/magento2ce/files/.platform.app.yaml +++ b/templates/magento2ce/files/.platform.app.yaml @@ -72,13 +72,16 @@ hooks: crons: magento: spec: "*/5 * * * *" - commands: bash -c 'for group in $(grep -shoP "(?<=)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done' + commands: + start: bash -c 'for group in $(grep -shoP "(?<=)" {app,vendor}/*/*/etc/cron_groups.xml); do echo -n Running cron group ${group} --- && php -d memory_limit=-1 bin/magento cron:run --group=${group}; done' logrotate: spec: "45 1 * * *" - commands: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log + commands: + start: shtool rotate -n10 $PLATFORM_APP_DIR/var/log/*.log reportcleanup: spec: "0 2 * * *" - commands: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete + commands: + start: find $PLATFORM_APP_DIR/var/report/* -mtime +10 -delete # The configuration of app when it is exposed to the web. web: diff --git a/templates/nextcloud/files/.platform.app.yaml b/templates/nextcloud/files/.platform.app.yaml index ac1ee1623..fa651a168 100644 --- a/templates/nextcloud/files/.platform.app.yaml +++ b/templates/nextcloud/files/.platform.app.yaml @@ -109,8 +109,10 @@ crons: # Run NextClouds's cron tasks every 5 minutes. cron: spec: '*/5 * * * *' - commands: 'cd src ; php cron.php' + commands: + start: 'cd src ; php cron.php' preview: spec: '*/10 * * * *' - commands: './occ preview:pre-generate' + commands: + start: './occ preview:pre-generate' diff --git a/templates/pimcore/files/.platform.app.yaml b/templates/pimcore/files/.platform.app.yaml index c9b0606e4..1c4de5c11 100644 --- a/templates/pimcore/files/.platform.app.yaml +++ b/templates/pimcore/files/.platform.app.yaml @@ -104,7 +104,8 @@ hooks: crons: pimcore_cron: spec: "*/5 * * * *" - commands: "bin/console maintenance" + commands: + start: "bin/console maintenance" source: operations: diff --git a/templates/typo3/files/.platform.app.yaml b/templates/typo3/files/.platform.app.yaml index d806765c2..60335aa72 100644 --- a/templates/typo3/files/.platform.app.yaml +++ b/templates/typo3/files/.platform.app.yaml @@ -211,7 +211,8 @@ crons: # Run TYPO3's Scheduler tasks every 5 minutes. typo3: spec: "*/5 * * * *" - commands: "vendor/bin/typo3 scheduler:run" + commands: + start: "vendor/bin/typo3 scheduler:run" source: operations: