Sometimes Nanobox will fail to mount the codebase of an app through the usual nanobox
run command. This will lead to a constant loop of attempting to mount the codebase folder before Nanobox gives up after a few tries, despite entering the correct password. If you look at the logs, this will often be due to a host is down
error.
This can often because the mount has not been correctly set. You can do this manually, by running net share
as per:
The syntax is:
net share nanobox-[APP-ID]=C:/path/to/project" /unlimited /GRANT:%username%,FULL
[APP-ID]
- Should be replaced by the nanobox app ID, this can be found by viewing the nanobox.log or using verbose/debug logsC:/path/to/project
- Replace with the path to your code folder on your machine%username%
- Is the username of the Windows account you are logged in with. You should be able to use this as an environment variable, rather than manually specifying your username.