This is good info, but one thing is still catching...
# box-products
p
This is good info, but one thing is still catching me: "any time a server starts. This looks up the web root of the starting server and checks for an .env file." I was using Mod_CFML to host two sites, so I had my
server.json
(with the config) in a folder
www
, and then the two webroots inside. I did this so that I could have one folder each for the
/lib
and
/certs
folders in
www
. So when you say "web root" do you mean the CFM/HTML serving web root, or the location of the
server.json
file (in my case, one folder up)? @bdw429s
e
I think I keep mine in the same folder as the
server.json
file as a default.
b
@Peter Hoopes ModCFML contexts are loaded on-demand at some point after the server has started-- possibly hours or days later. The commandbox-dotenv's behavior only happens on the server's initial start, and the only web root it knows about is the default server.
None of the other ModCFML contexts that may or may not be known in the future are available to dotenv.
p
Sounds good. I’ll give it a whirl!
👍 1
b
@Peter Hoopes Keep your eye out for CommandBox Multi-server which I'll be announcing and demoing at Into The Box this month!
It's like ModCFML, but doesn't require any front end web server. CommandBox does it all including the site definitions!
It will be free for development and part of a CommandBox pro license for production and will allow you to simplify your entire server setups down to a single moving part.
p
That sounds like exactly what we need!
👍 1
b
Do you have your ITB ticket? 🙂
p
I wish I could go! Working at a small school means I’m stuck here until school is out. I wish ITB were in the summer!
👍 1