S
S
Snorway2017-04-19 12:19:35
Yii
Snorway, 2017-04-19 12:19:35

Where to keep cron jobs when deploying?

Deployment takes place via ssh, cron tasks are added manually. But where is the best place to store a text file with a list of tasks? Framework Yii1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2017-04-19
@Snorway

Deployment happens over ssh

What does it mean? If you are using, so to speak, "the old fashioned way" SFTP, then we can suggest you try Phing. Keep a list of tasks in the project root or in a separate category and write in the task so that it can be thrown where necessary via sftp (eg /etc/cron.d/). Also, phing will help automate the deployment, clear the cache, etc., etc. It's just that everything you do with your hands - prescribe in tasks and enjoy the 1st button.
But all this, you see, is not stylish, not fashionable, and indeed there are many better deployment solutions, but what are the conditions, this is the answer.

N
Ne-Lexa, 2017-04-19
@NeLexa

More correctly in /etc/cron.d/
https://ruhighload.com/post/%D0%9A%D0%B0%D0%BA+%D0...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question