ruby - 為什麼在rails專案中touch /tmp/restart.txt 這個檔案就可以達到更新服務的目的?
怪我咯
怪我咯 2017-04-21 10:57:22
0
1
704

一般在rails nginx passenger在修改部分代碼後,通常touch 一下/tmp/restart.txt就可以更新項目,這個和nginx -s reload 的作用是一樣的,我想問一下.這個做的原理是什麼呢?

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回覆(1)
PHPzhong

這個是passneger官方文件的解釋
http://www.modrails.com/documentation...

Phusion Passenger checks whether the timestamp of this file has changed in order to determine whether the application should be restarted.
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板