if i have a lucee application running in commandbo...
# box-products
w
if i have a lucee application running in commandbox with the dotenv module installed, is there a way to get from
server.system.environment
just those environment variables that were set via a .env file as opposed to those 'baked in' to the engine's server scope?
b
No, because that pulls direclty from the underlying OS's process which includes everything.
The operating system doesn't differentiate between who set each env var.
If you reall need this, you could manually read the .env file, or create a module bcc that listens on server start and duplicates all of CommandBox's env vars with a prefix you can search for
Generally speaking though, you're not supposes to care where a given env var came from.
w
roger, thanks