你好!
我也有钩子,一个用于 pre_start,一个用于 post_start。
- pre_start开始一个自写的脚本,例如:
nohup python foo.py > /dev/null &
- foo.py像往常一样持续运行的地方。
- post_start仅用于诊断一切运行正常,它只是调用
ps aux
并发送有关它的电子邮件。(这是一个带有 shebang 的 Python 脚本)
现在。当我提交并推送某些内容时,重建开始,并以两个 pre_start 和 post_start 脚本之间的无限循环结束:(
他们之间只有一些小消息,我不明白:
remote: Script /var/lib/openshift/5...3/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/5...3/python/virtenv/bin/python)
remote: Script /var/lib/openshift/5...3/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/5...3/python/virtenv/bin/python)
谢谢你的帮助!:)