@gknight It seems like the command box serverService is having trouble discovering your server when you run the fwreinit command. Can you try this and let us know the results:
Look in your server.json file and get the name of the server, usually at the top "name":"my-boxlang-server" then try running:
fwreinit name="my-boxlang-server"
(with your server name of course )
It’s interesting that bullet train obviously recognizes the server in that folder. I wonder what logic Luis is using in the reinit command to find the server.
Sorry, the current directory is the web root of the server.
And you are right, I had mismatched names. After correcting that, the fwreinit name="insitecb8" works, but the standalone fwreinit still throws the error.
which literally just loops over all the servers, looking for one whose webroot matches the incoming path. Just slap some debugging in and find out what’s going on. You can edit the ServerService.cfc directly in the CommandBox home. Use systemOutput( data, true ) to debug and reload the shell between changes
So earlier, I asked if the current directory is the web root of the server and you said yes, but your server.json above says otherwise
"webroot":"public",
That would explain the issue, and it’s the reason it’s the first question I asked!
Commands like server info use a more generic/robust approach to finding the current server, which is one that looks for a server whose server.json lives in the current directory
var serverDetails = serverService.resolveServerDetails( arguments );
This is why the reinit command doesn’t find the server as it uses a more limited approach which only works if the current working directory of the CLI is EXACTLY the web root. Your web root is nested one folder deeper in the public directory, thus it’s not found.