gavinbaumanis
07/21/2023, 4:21 AM{
"dependencies": {
"D062D72F-F8A2-46F0-8CBC91325B2F067B": "^5.4.29.28"
}
}
But when I start the server it is not in the server / Extensions / Applications.
Am I doing something wrong?bdw429s
07/21/2023, 4:26 AMbox install
⢠and do it after the server has started at least oncebdw429s
07/21/2023, 4:26 AMbdw429s
07/21/2023, 4:27 AMserver.json
{
"env": {
"LUCEE": {
"EXTENSIONS": "D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
}
gavinbaumanis
07/21/2023, 4:28 AMbdw429s
07/21/2023, 4:28 AMbdw429s
07/21/2023, 4:28 AMbox.json
is literally what the install command installs!gavinbaumanis
07/21/2023, 4:29 AMgavinbaumanis
07/21/2023, 4:31 AMbdw429s
07/21/2023, 4:31 AMbdw429s
07/21/2023, 4:32 AMbdw429s
07/21/2023, 4:32 AMgavinbaumanis
07/21/2023, 4:32 AMgavinbaumanis
07/21/2023, 4:36 AMbdw429s
07/21/2023, 4:46 AMbdw429s
07/21/2023, 4:47 AMserver start
instead of having to remember to run a recipe instead.gavinbaumanis
07/21/2023, 4:47 AMbdw429s
07/21/2023, 4:48 AM.cfconfig.json
file in the web root (it will be loaded automatically)
⢠put all your env vars in an .env
file in the web root (it will also be loaded automatically)bdw429s
07/21/2023, 4:49 AMLUCEE_EXTENSIONS
env var. Whether you put that env var in the server.json
like I showed, or a .env
file, or set it in a recipe really doesn't matter.gavinbaumanis
07/21/2023, 4:50 AMbdw429s
07/21/2023, 4:51 AMenv
object are concatenated together using undercores, so
{
"env": {
"LUCEE": {
"EXTENSIONS": "D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
}
is the exact same thing as
{
"env": {
"LUCEE_EXTENSIONS": "D062D72F-F8A2-46F0-8CBC91325B2F067B"
}
}
I just like nesting them there, so if you have a number of related env vars which share a prefix, it reduces the boilerplate.bdw429s
07/21/2023, 4:52 AMgavinbaumanis
07/21/2023, 4:53 AMgavinbaumanis
07/21/2023, 5:24 AMbdw429s
07/21/2023, 5:25 AMbdw429s
07/21/2023, 5:25 AMgavinbaumanis
07/21/2023, 5:45 AMgavinbaumanis
07/21/2023, 5:45 AMsever.json
in my webroot.
{
"app": {
"cfengine": "lucee@5.4.1.8"
},
"JVM": {
"heapSize": "2048",
"javaVersion": "openjdk11"
},
"name": "CentraCX",
"openbrowser": "false",
"web": {
"http": {
"port": "80"
}
},
"server": {
"profile": "development"
},
"env": {
"LUCEE_EXTENSIONS": "testbox"
},
"installPaths": {
"testbox": "../cfmapping/testbox/"
},
"testbox": {
"runner": "<http://centra.localhost/tests/runner.cfm>"
}
}
I have a box
loaded
cd \webroot
server start
After which the contents of the server.json file are now;
{
"app": {
"cfengine": "lucee@5.4.1.8"
},
"JVM": {
"heapSize": "2048",
"javaVersion": "openjdk11"
},
"name": "CentraCX",
"openbrowser": "false",
"web": {
"http": {
"port": "80"
}
},
"server": {
"profile": "development"
},
"env": {
"LUCEE_EXTENSIONS": "testbox"
},
"installPaths": {
"testbox": "../cfmapping/testbox/"
},
"testbox": {
"runner": "<http://centra.localhost/tests/runner.cfm>"
}
}
Here is a windows "step" recording of it;bdw429s
07/21/2023, 5:59 AMbdw429s
07/21/2023, 5:59 AMbdw429s
07/21/2023, 5:59 AM"LUCEE_EXTENSIONS":"D062D72F-F8A2-46F0-8CBC91325B2F067B,7E673D15-D87C-41A6-8B5F1956528C605F,CED6227E-0F49-6367-A68D21AACA6B07E8,17AB52DE-B300-A94B-E058BD978511E39E,etc...",
bdw429s
07/21/2023, 6:00 AM"LUCEE_EXTENSIONS":"testbox"
that's not a real Lucee extension IDbdw429s
07/21/2023, 6:00 AMgavinbaumanis
07/21/2023, 6:03 AMbdw429s
07/21/2023, 6:03 AMtestbox
is not a Lucee extensiongavinbaumanis
07/21/2023, 6:04 AMgavinbaumanis
07/21/2023, 6:12 AMbdw429s
07/21/2023, 2:17 PMLUCEE_EXTENSIONS=D46B46A9-A0E3-44E1-D972A04AC3A8DC10;version=1.0.19.19
bdw429s
07/21/2023, 2:17 PMgavinbaumanis
07/23/2023, 2:22 PMbdw429s
07/24/2023, 2:58 PMbdw429s
07/24/2023, 2:58 PMgavinbaumanis
07/25/2023, 12:32 AM