strapi / strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.
https://strapi.io
Other
63.89k stars 8.14k forks source link

Server does not restart when a file is updated since the v3.0.0-alpha.13.1 migration #1782

Closed devaublanc closed 6 years ago

devaublanc commented 6 years ago

Informations

What is the current behavior? Since the migration v3.0.0-alpha.13.1. When I start the local server and I edit a file (a controller for instance) the app detect changes but the the server never restart.

api_1  | [2018-08-21T20:27:55.438Z] info File changed: /usr/src/api/api/bootstrap/controllers/Bootstrap.js
api_1  | [2018-08-21T20:28:00.442Z] info File changed: /usr/src/api/api/bootstrap/controllers/Bootstrap.js
api_1  | [2018-08-21T20:28:05.456Z] info File changed: /usr/src/api/api/bootstrap/controllers/Bootstrap.js
api_1  | [2018-08-21T20:28:10.461Z] info File changed: /usr/src/api/api/bootstrap/controllers/Bootstrap.js

Steps to reproduce the problem

  1. strapi start
  2. Edit a file from your api

What is the expected behavior?

The dev server have to restart when when a file is updated

lauriejim commented 6 years ago

Probably be fixed with this PR https://github.com/strapi/strapi/pull/1712