好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

passenger restart

passenger restart

passenger with nginx tutorial

http://HdhCmsTestmodrails测试数据/documentation/Users%20guide%20Nginx.html#capistrano

3. Redeploying (restarting the Ruby on Rails application)

Deploying a new version of a Ruby on Rails application is as simple as re-uploading the application files, and restarting the application.

There are two ways to restart the application:

By restarting Nginx.

By creating or modifying the file  tmp/restart.txt  in the Rails application’s  root folder . Phusion Passenger will automatically restart the application during the next request.

For example, to restart our example MyCook application, we type this in the command line:

 touch /webapps/mycook/tmp/restart.txt 

Please note that, unlike earlier versions of Phusion Passenger,  restart.txt  is not automatically deleted. Phusion Passenger checks whether the timestamp of this file has changed in order to determine whether the application should be restarted.

查看更多关于passenger restart的详细内容...

  阅读:42次