一般在rails nginx passenger在修改部分代碼後,通常touch 一下/tmp/restart.txt就可以更新項目,這個和nginx -s reload 的作用是一樣的,我想問一下.這個做的原理是什麼呢?
PHPz2017-04-21 10:59:22
這個是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.