tableflip / guvnor

A node process manager that isn't spanners all the way down
MIT License
430 stars 37 forks source link

How to pass environment variables? #26

Closed mariocasciaro closed 9 years ago

mariocasciaro commented 9 years ago

Is there a way to provide a set of env variables when starting a process?

achingbrain commented 9 years ago

A process should inherit from it's environment so:

MY_VAR=foo bs start myscript.js
mariocasciaro commented 9 years ago

Is that maintained across restarts?

achingbrain commented 9 years ago

It should be, yes. You can check by killing boss then examining the contents of /etc/boss/processes.json

mariocasciaro commented 9 years ago

Yes, sorry I tried it myself and it seems to be perfectly working, thanks!