문제

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.

도움이 되었습니까?

해결책

I seem to have finally found the right plugin and it's dotenv

다른 팁

pm2 can do this, if you specify environment in .json config files (see this as an example)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top