Now, the commandbox-dotenv module has several diff...
# box-products
b
Now, the commandbox-dotenv module has several different interception points that it listens to in order to load .env files • when the CLI starts. This means if you run any
box
command in a working directory with an
.env
file, it will get loaded into the global environment for the duration of the shell • any time a command is run. This includes server commands and any other command alike and will specifically load an
.env
from the current working directory of the shell • any time a server starts. This looks up the web root of the starting server and checks for an .env file. Keep in mind the server start command may not be run the web root.