乘客独立不会在触摸 restart.txt 时重新启动 [英] Passenger Standalone won't restart on touching restart.txt

查看:47
本文介绍了乘客独立不会在触摸 restart.txt 时重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个小部署脚本,它的工作方式类似于 Capistrano,它将 Rails 应用程序检出到带时间戳的目录,并在一切顺利时将 current 链接设置为该目录.问题是,在触摸 tmp/restart.txt 时,没有任何反应,我想知道它是否与从 cd/path/to/app/current 之后的带时间戳的目录中启动的乘客独立有关代码>.因此,如果我更新当前链接,乘客不会在该链接的新目标目录中看到发生的事情,而是停留在旧目录中,认为生活很美好.

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?

推荐答案

需要将当前作为第一个参数传递

You need to pass the current as first parameter

这篇关于乘客独立不会在触摸 restart.txt 时重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆