process-compose icon indicating copy to clipboard operation
process-compose copied to clipboard

Disable loading .env file

Open shyim opened this issue 1 year ago • 5 comments

Feature Request

Right now process compose loads the project .env file and makes it impossible to change any configuration while the processes are running.

I would like to have a flag in the configuration to disable this behavior. I set all relevant environment variables already before calling process compose

shyim avatar Jun 05 '24 07:06 shyim

Hi,

I can provide an argument and an environment variable to disable the .env loading. Do you think it will work for you?

F1bonacc1 avatar Jun 28 '24 10:06 F1bonacc1

Just so you know, process-compose (with .env file) doesn't override env variables that already exist.

F1bonacc1 avatar Jun 28 '24 12:06 F1bonacc1

I want that my application reads the .env and so I can change the environment variable without restarting process compose

shyim avatar Jun 28 '24 12:06 shyim

That makes sense. Will the process compose argument to disable .env loading help you then?

F1bonacc1 avatar Jun 28 '24 14:06 F1bonacc1

yes or in the config file in the root level maybe :)

shyim avatar Jun 28 '24 16:06 shyim

Released in v1.9.0

F1bonacc1 avatar Jul 25 '24 21:07 F1bonacc1

v1.9.0 is now available on nixpkgs unstable: https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=process-compose

RafaelKr avatar Jul 29 '24 18:07 RafaelKr