Introduction
Applications deployed in AutoPilot use crons to run scheduled tasks. These cron jobs are configured automatically, unless you chose Skip Application Provisioning during the deployment process.
Viewing Cron Jobs
SSH to your AutoPilot environment using the Shell Access command shown in the Overview tab.
Get a list of your user's cron jobs:
crontab -l
For a Magento deployment, you should see a cron job similar to this:
#~ MAGENTO START ec0105ed65f93bbcce7815c6ce1e948c36e184b15c1305f5b7b8b958e76e349d
* * * * * /usr/bin/php7.4 /mnt/jrc-data/www/website.com/releases/2024-02-29-001/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /mnt/jrc-data/www/website.com/releases/2024-02-29-001/var/log/magento.cron.log
#~ MAGENTO END ec0105ed65f93bbcce7815c6ce1e948c36e184b15c1305f5b7b8b958e76e349d
For Shopware, you should see a cron job similar to:
*/5 * * * * /usr/bin/sudo -u www-data bash -c 'umask 0002; /usr/bin/php /var/www/website.com/live/bin/console scheduled-task:run --no-wait'
Configuring Cron Jobs
If you would like to edit or add a cron job, use the following command:
crontab -e
By default, this will open the vi editor to edit the crontab. If you prefer to use another editor, specify it with the EDITOR= variable. For example, the following command will edit the crontab using nano:
EDITOR=nano crontab -e
More Information
For more in-depth information about cron jobs, see our Scheduling Cron Jobs article.
Comments
0 comments
Article is closed for comments.