19 Temmuz 2021 Pazartesi

Supervisor.js

Giriş
Açıklaması şöyle. Kod değişikliğini hemen uygular
The development problem is that when we change the code, we have to stop and start the application to get our changes picked up.
To solve that, we usually use some sort of Node process manager like supervisor or nodemon. These packages will watch our project and restart our server whenever we make changes. 
Örnek
Şöyle yaparız
"scripts": {
  "dev": "npx supervisor index.js",
  "start": "node index.js"
}

Hiç yorum yok:

Yorum Gönder