circus-tent / circus

A Process & Socket Manager built with zmq
http://circus.readthedocs.org/
Other
1.55k stars 258 forks source link

environment files #637

Open apmorton opened 11 years ago

apmorton commented 11 years ago
[env]
settings_path = /path/to

[envfile:name]
source = /path/to/file

[envfile:name2]
source = $(circus.env.settings_path)/file

/path/to/file

KEY = value
CAKE = lie

Thoughts?

zimbatm commented 11 years ago

It would be great is circus was able to load .env files as introduced by Heroku's foreman.

EDIT: The parsing is defined here: https://github.com/bkeepers/dotenv/blob/master/lib/dotenv/environment.rb

msiedlarek commented 10 years ago

I'm just gonna leave it here for those brought here by Google, as I once was: https://github.com/msiedlarek/circus-env-modifier This is a small package that allows you to modify your watcher environment with a shell command, for example executing a simple shell script. It works just fine for my deployments.

I agree though that this problem deserves a built-in solution.