Can I tell foreman to reload the web app every time a request is made so I can develop decently?

后端 未结 6 702
南方客
南方客 2020-12-24 13:18

A web app I am writing in JavaScript using node.js. I use Foreman, but I don\'t want to manually restart the server every time I change my code. Can I tell Foreman to reload

6条回答
  •  时光取名叫无心
    2020-12-24 14:07

    You can use rerun for this purpose

    You might implement just 2 commands for this:

    1. gem install rerun
    2. rerun foreman start

    Then rerun will automatically restart process after any change in your files.

提交回复
热议问题