rabbitmq-cli-consumer icon indicating copy to clipboard operation
rabbitmq-cli-consumer copied to clipboard

Copy environment variables

Open mattattui opened this issue 10 years ago • 1 comments

If I set environment variables like SYMFONY__RABBITMQ_HOST on my server (or in this case docker container, but whatever), then add a rabbitmq-cli-consumer program to my supervisord config, supervisor is kind enough to copy the environment into the process that runs rabbitmq-cli-consumer, but alas when the consumer runs the symfony command, that environment isn't present, so it fails. I hope that makes sense :smile:

Ideally rabbitmq-cli-consumer would copy its environment into the shell running the configured command. Alternatively being able to set environment variables on the command line (or from a config file) would also be ok.

mattattui avatar Nov 19 '15 15:11 mattattui

I'll take this into consideration for v2, but can't promise it'll be in the first version. I do see the use case though, so I'll add it to the feature list.

ricbra avatar Nov 19 '15 19:11 ricbra