【发布时间】:2020-06-15 01:16:33
【问题描述】:
我正在使用在弹性 beantalk 上运行的应用程序来实现一些 cronjobs,但我不确定如何继续。我当前在 .ebextension 文件夹中的 cron-linux.config 文件如下所示:
files:
"/etc/cron.d/mycron":
mode: "000644"
owner: root
group: root
content: |
* * * * * root /usr/bin/python opt/python/current/app/api/cron.py > /dev/null
commands:
remove_old_cron:
command: "rm -f /etc/cron.d/*.bak"
我使用 eb ssh 来确保路径指向正确的位置。问题是我没有收到任何错误消息,所以很难知道问题出在哪里。任何帮助将非常感激!
【问题讨论】:
标签: python django amazon-web-services cron amazon-elastic-beanstalk