If I serve my application using 'Rails s' whenever the code of the application changes the served app changes too. Now I am using Nginx and passenger, how do I replicate this behaviour, at least on the development environment?
You actually want to reload Passenger, not nginx. Create a tmp/restart.txt file under your Rails app root directory. To reload, touch tmp/restart.txt. Passenger will notice the file change and reload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With