evoluteur / evolutility-server-node

Model-driven REST APIs for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
GNU Affero General Public License v3.0
112 stars 33 forks source link

Second copy of server loops forever #11

Closed david-pfx closed 6 years ago

david-pfx commented 6 years ago

Using Windows PowerShell. Run 'start npm start' once and all is fine.

Run 'start npm start' again and it produces an error message, and then loops forever. The error message is:

Port 2000 is already in use
Program node ./bin/www exited with code 1
evoluteur commented 6 years ago

The looping for ever is b/c I use supervisor to automatically restart after a crash. If you do not want that behavior, you can change the start script in package.json for "./bin/www" or simply run "./bin/www" instead of "npm start".

david-pfx commented 6 years ago

By design, huh? Fair enough. You might consider putting this note in the readme.