i had thought that commmandbox's `server start` wo...
# box-products
j
i had thought that commmandbox's
server start
would have the web root at the current directory, but maybe not? how to do so? (i'm still trying to figure out which directory i'm seeing in the browser.)
found the
--directory
option
r
@jamiejackson You can use that option but I usually don't need that. For example, if my web root is c:\jamie the first start I navigate to c:\jamie and server start. It spins up a new server named jamie. After that it doesn't matter what directory I'm in because I do a server start jamie and it works. Even if you don't start with a server.json it will create one. After that you can change server name, port, directory, etc in the server.json for future starts. In my experience if you first spin up in your desired web root it just works. After that just do server start whtevername it created from anywhere.
j
after installing commandbox with chocolatey, i think i accidentally ran some box commands in the same admin terminal which may have put things in a weird state. i uninstalled box, removed
.CommandBox/
, then reinstalled. when ran box commands (unpriviledged) afterwards, things behaved as i expected.
b
Unless you specify a directory, commandbox will use the current working dir of the shell as the webroot.
Also, using the directory param does not look like --directory... That syntax is only for booleans. It's directory=/path/to/webroot