Skip to content

Commit d7b370d

Browse files
author
Igor Ludgero Miura
authored
Add an example of crontab -r command
1 parent a868a3e commit d7b370d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ You will also need to open a support ticket requesting the Bitbucket Pipelines i
257257
#### Cron configuration
258258
On JR we need to disable the cron jobs and start them again after every new deployment in order to avoid duplicated cron jobs os jobs running on incorrect code releases. We can't stop and start the cron service like we can do on AWS or MageMojo. So, in order to do that you first need to clean the crontab before a new deployment. On the **before_deploy** step you need to add the **"crontab -r"** command, it will clear the crontab, completely.
259259

260+
```
261+
"before_deploy":[
262+
"crontab -r"
263+
]
264+
```
265+
260266
Then on the **after_deploy** step you need to add the Magento cron:install command. This command will setup the Magento crontab for you.
261267

262268
```

0 commit comments

Comments
 (0)