iloire / watchmen

A simple node.js service monitor
MIT License
941 stars 199 forks source link

how and where do we set any env variable like I want to export WATCHMEN_WEB_NO_AUTH='true' how do I do it #110

Closed pineshmenat closed 5 years ago

lorranpego commented 5 years ago

It is not related to the project, but to OS and Node.Js itself.

https://stackoverflow.com/questions/22312671/setting-environment-variables-for-node-to-retrieve

fergatron commented 5 years ago

I was able to get it by updating the ./config/web.js file with:

process.env['WATCHMEN_WEB_NO_AUTH'] = 'true';
lorranpego commented 5 years ago

@pineshmenat @fergatron Since we didn't have many interaction in this repository, I created a copy of it and made some modifications.

https://github.com/lorranpego/watchmen

On my copy, you can set the configuration files at config/.env and it will be loaded when the process start.

pineshmenat commented 5 years ago

Thank you all for your response, closing it now