(Archived) Installation of a CRON job via composer

You have tried to access an archived page. Please go to the new https://root360.atlassian.net/wiki/spaces/KB to find more documents.


To set a CRON job in an environment of Composer can be used. Therefore the following configurations must be made:



composer.json:

{ "scripts": { "post-install-cmd": [ "app/bin/post-setup.sh", ], "post-update-cmd": [ "app/bin/post-setup.sh", ] }, }

app/bin/post-setup.sh:

#!/bin/bash cd "$(dirname $(readlink -f "${0}") )" if [ "$SYMFONY_ENV" = "prod" ]; then . "${PWD}/_post-setup-prod.sh" fi app/bin/_post-setup-prod.sh: #!/bin/bash cd "$(dirname $(readlink -f "${0}") )/../../" crontab conf/crontab/crontab-prod

conf/crontab/crontab-prod:



root360 Knowledge Base - This portal is hosted by Atlassian (atlassian.com | Privacy Policy)