I seem to have finally found the right plugin and it's dotenv
Is there a system for Node.js projects to automatically populate ENV?
-
18-10-2022 - |
Frage
I like using .env
-files in my projects and love that foreman
automatically includes those values into my ENV
.
Is there something similar for Node.js?
I really don't want a plugin that needs extra configuration besides installing it, but I'd love any proper way of achieving this.
Lösung
Andere Tipps
pm2
can do this, if you specify environment in .json config files (see this as an example)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow