Passenger Standalone 在触摸 restart.txt 时不会重新启动
我构建了一个与 Capistrano 类似的小型部署脚本,它将 Rails 应用程序检出到带时间戳的目录,并在一切顺利时将 current
链接设置为该目录。 问题是,在触摸 tmp/restart.txt 时,没有任何反应,我想知道这是否与 cd /path/to/app/current
之后从带时间戳的目录中启动 Passenger Standalone 有关代码>.因此,如果我更新当前链接,乘客不会看到该链接的新目标目录中发生的事情,而是留在旧目录中,认为生活很美好。
这些假设是否正确?如果正确,我该怎么办?如果没有,我能做什么?
I built a little deploy script that works similar to Capistrano in that way, that it checks out a Rails application to a timestamped directory and sets the current
link to that when all went well.
The problem is, that on touching the tmp/restart.txt, nothing happens and I wonder if it has something to do with Passenger Standalone being started from within the timestamped directory after cd /path/to/app/current
. So if i update the current link, passenger doesn't see the things happening in that link's new target directory but stays in the old one, thinking life is beautiful.
Are these assumptions correct and if so, what can I do? If not, what can I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将当前作为第一个参数传递
You need to pass the current as first parameter