One thing, if I may ask you :wink: I just started ...
# lucee
f
One thing, if I may ask you 😉 I just started a box instance using
docker pull ortussolutions/commandbox
and
docker run -p 8080:8080 -p 8443:8443 -v "/path/to/your/app:/app" ortussolutions/commandbox
How can I now access lucee admin? Using localhost:8080/lucee/admin/web.cfm there's nothing. I think I'm still missing the entry point a bit?!? 🙈 Thanks
p
@Fritz I think it has to do with your server profile. By default the docker image uses "production" which does not allow access to the admin. Try setting it to "development" or "none" to get access to the admin console. I have the following line in my Dockerfile.
Copy code
ENV BOX_SERVER_PROFILE      "none"
This is for a docker image that is only used for testing and is not meant for production.
f
@Peter Amiri thanks, I started the docker image now with -e BOX_SERVER_PROFILE="none" and this did the magic 😉 Thanks
s
I'll save you some time - make your own image based on theirs
You're going to want to get the understanding of cfconfig vs server.json vs env variables and the warmup process anyway
Ortus makes it super easy to "just use theirs" but with the benefits of the multi stage build and the smaller resulting images this is kind of a trap!