birdy1980
07/06/2022, 1:23 PMserver service update name=sm1apc directory="C:/software/web/profit-tasks"
And Ii have set the same value in the server.json file.
But still in the windows event viewer the directory points to the /htdocs
folderbdw429s
07/06/2022, 5:25 PMmkdir servicewebroot --cd
mkdir www
touch www/index.cfm
echo "test" > www/index.cfm
server set web.webroot=www
server service create
server service start
bdw429s
07/06/2022, 5:26 PM❯ server service info --verbose
which included this line
set www4 AppParameters "server start name='www4' directory='C:/sandbox/servicewebroot/www/' serverConfigFile='C:\\sandbox\\servicewebroot\\www\\/server.json' --console --verbose --noSaveSettings --noOpenBrowser --noTrayEnable"
bdw429s
07/06/2022, 5:26 PMwww
folderbdw429s
07/06/2022, 5:27 PMbdw429s
07/06/2022, 5:43 PMbdw429s
07/06/2022, 5:43 PMbirdy1980
07/07/2022, 7:40 AMbirdy1980
07/07/2022, 7:47 AMmkdir servicewebroot --cd
// add a lucee-engine.zip to servicewebroot
server set app.cfengine="lucee-engine.zip"
mkdir www
touch www/index.cfm
echo "test" > www/index.cfm
server set web.webroot=www
server service create
server service start
This will result in an error that says that lucee-engine.zip is not a valid entry slug on forgebox.
if you try to set the cfengine to "./lucee-engine.zip" the error says file or directory "./lucee-engine.zip" does not existbdw429s
07/07/2022, 5:07 PMbdw429s
07/07/2022, 5:07 PMserver set app.cfengine="lucee-engine.zip"
Where exactly is the lucee-engine.zip
file on disk?bdw429s
07/07/2022, 5:08 PMbdw429s
07/07/2022, 5:08 PMbdw429s
07/07/2022, 5:09 PMserver.json
is in gets passed along like it would if you were to do something like
install file.zip
from the CLIbdw429s
07/07/2022, 5:09 PMbirdy1980
07/08/2022, 5:15 AMbdw429s
07/08/2022, 6:28 AMserver.json
lived (unless, of course, the cfengine
came from a CLI arg or a server default), but that will be in the next version.bdw429s
07/08/2022, 6:29 AMserver.json
out of the web root.bdw429s
07/08/2022, 6:30 AMbdw429s
07/08/2022, 6:33 AMserver.json
but we got sidetracked on the cfengine question.
server service create serverConfigFile=path/to/server.json
bdw429s
07/08/2022, 7:16 AMbirdy1980
07/08/2022, 8:52 AMfile:./lucee-engine.zip
it's still an ID that is tried as a path relative to the working directory. We have moved the engine.zip to our s3 storage so the cfengine starts with https://
That works.bdw429s
07/08/2022, 4:40 PMeven if you start withTo be clear (assumingit's still an ID that is tried as a path relative to the working directoryfile:./lucee-engine.zip
foo.txt
exists)
install foo.txt
is the same as
install file:foo.txt
its just that the endpoint is explicit int he second one. So obviously they are going to work the same in both cases, which is to use the current working dir of the shell. But that is all fixed on the bleeding edge of CommandBox via COMMANDBOX-1492. At least, in my local testing last night. Please feel free to grab the snapshot build and help test for me.bdw429s
07/08/2022, 4:40 PM