How to Make Nginx Know About Rails Code Changes

If I serve my application using "Rails s" when the application code changes, the application also changes. Now I use Nginx and passenger, how can I reproduce this behavior, at least in the development environment?

+3
source share
1 answer

You really want to restart Passenger, not nginx. Create a file tmp/restart.txtin the root directory of the Rails application. To reload touch tmp/restart.txt. The passenger will notice the change and reload of the file.

+4
source

Source: https://habr.com/ru/post/1781062/


All Articles