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

后端 未结 6 704
南方客
南方客 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:14

    I feel like Peter Ehrlich's comment on the original question deserves to be an answer on its own. I think a different Procfile for local/dev is definitely the best solution: https://stackoverflow.com/a/10790514/133720

提交回复
热议问题