cfsimplicity
03/13/2023, 4:16 PMBOX_SERVER_SERVERCONFIGFILE
as an ENV but it seems to be ignored. I prefer to keep all my app files and config above the webroot.Patrick
03/13/2023, 6:17 PMcfsimplicity
03/13/2023, 6:39 PMPatrick
03/13/2023, 6:42 PMPatrick
03/13/2023, 6:44 PMBOX_SERVER_PROFILE
if it isnt ProductionPatrick
03/13/2023, 6:44 PMcfsimplicity
03/13/2023, 8:01 PMPatrick
03/13/2023, 8:12 PMcfsimplicity
03/13/2023, 8:40 PMserver.json
which is above the webroot, i.e. APP_DIR
Patrick
03/13/2023, 8:43 PMBOX_SERVER_SERVERCONFIGFILE
in your Docker file or within your Server.json file?cfsimplicity
03/13/2023, 8:54 PMbuild/run.sh
script.Patrick
03/13/2023, 10:11 PMjclausen
03/13/2023, 10:13 PMjclausen
03/13/2023, 10:13 PMjclausen
03/13/2023, 10:14 PMjclausen
03/13/2023, 10:16 PMBOX_
environment variables would pass through to CommandBoxbdw429s
03/14/2023, 1:16 AMcfsimplicity
03/14/2023, 10:37 AMFROM ortussolutions/commandbox
ENV BOX_SERVER_SERVERCONFIGFILE myCustomServer.json
cfsimplicity
03/14/2023, 10:39 AMLooking for server JSON file by convention: /app//server.json
webroot defaulted to location of server's JSON file: /app/
start server in - /app/
server name - app
server config file - /app//server.json
jclausen
03/14/2023, 1:07 PMserverConfigFile
environment variable not getting picked up. I can see it pulling environment variables from that custom file in one phase of the startup but then it falls back, somehow. I’ll push up a patch for the image today to resolve that.jclausen
03/14/2023, 1:34 PM√ | Starting Server
|------------------------------
| start server in - /Users/jonclausen/tmp/server-json-test/
| server name - server-json-test
| server config file - /Users/jonclausen/tmp/server-json-test//server.json
When I stop the server or forget it, the environment variable appears to get picked up and I see this output:
√ | Overriding server.json values from env vars
|----------------------------------------------------------
| Overridding [SERVERCONFIGFILE] with box environment variable [BOX_SERVER_SERVERCONFIGFILE]
|----------------------------------------------------------
I am going to submit a ticket for @bdw429s to look at on this. I know this environment variable was working previously, so this may be a regression introduced later on in the beta phase of 5.8jclausen
03/14/2023, 1:43 PMcfsimplicity
03/14/2023, 2:27 PMcfsimplicity
03/17/2023, 4:13 PMserver.json
and it does then get read by commandbox.
Looking for server JSON file by convention: /app//server.json
webroot pulled from server's JSON: /app/web/
start server in - /app/web/
server config file - /app//server.json
As you can see, and for the reasons I mentioned before, I'm setting the webroot to be one level below in /app/web/
However, I'm getting the following error which prevents the server starting:
[INFO] 2023-03-17T16:05:02Z - Starting server using generated script: /usr/local/bin/startup.sh
mv: cannot stat '/app/server-start.sh': No such file or directory
cfsimplicity
03/17/2023, 4:15 PMjclausen
03/17/2023, 4:16 PMcfsimplicity
03/17/2023, 4:17 PMjclausen
03/17/2023, 4:18 PMcfsimplicity
03/17/2023, 4:18 PMjclausen
03/17/2023, 4:41 PMjclausen
03/17/2023, 8:02 PMcfsimplicity
03/18/2023, 12:11 PMNick Kurucz
05/01/2023, 10:08 PMjclausen
05/03/2023, 2:11 AM