Upon spinning up a new commandbox Lucee Server, sh...
# box-products
r
Upon spinning up a new commandbox Lucee Server, should there be a server.json file automatically created?
b
@ryan Depends
If you type
Copy code
server start
then no
But if you type
Copy code
server start port=8080
then yes
But if you type
Copy code
server start port=8080 --noSaveSettings
then no
🙂
Basically, CommandBox will save any settings you pass as params to the start command IF YOU PASS ANY, unless you tell it not to
r
if I give it a name, like
server start servername
then it would write the server.json, perhaps?
b
Test and see
🙂
r
already having a CLI devoted to being inside
box
, I originally typed
start
, so I was thinking that the server.json file would be created automatically and then I can modify the file with copies from another.
I knew that would be your answer, but don't have time right now and my drive is out of space. I have a new drive coming. Lol Thanks, Brad.
b
If you want to help stub out the JSON file, you can use
Copy code
server set foo-bar
to start setting the things you want
r
OK, thanks. I will look into that later tonight