typicode / hotel

🏩 A simple process manager for developers. Start apps from your browser and access them using local domains
MIT License
9.98k stars 424 forks source link

Allow to reload application #117

Open JanStevens opened 8 years ago

JanStevens commented 8 years ago

In rails it happens that you need to restart your complete server, coming from pow I could do it "easily" by touching a file tmp/restart.txt in my application folder.

It would be handy if hotel included a reload button to easily stop / start a service again and an additional CLI command hotel reload for example

layerssss commented 8 years ago

I think Rails (or at least Rails 5) is handling it (mtime of tmp/restart.txt)! So it should be working here. Try it.

bastianwegge commented 6 years ago

This works using puma and plugin :tmp_restart. You have to be careful though not to use rails s but bundle exec puma -p $YOUR_PORT --pid=tmp/pids/app.pid if you want to start different rails app-configurations out of a single folder.