Screencast - Starting CommandBox Servers as a Windows Service
Jan
29,
2018
A common question we get now is how to take a CommandBox server and wrap it in a Windows service so it starts automatically at boot time. This is ideal for production use or just a dev site that you always want to stay running. With this new screencast, you will learn how to take any CommandBox server and install it as a Windows service using a free tool called NSSM.
by Mark Drew 06 Dec 2018 06:31 AM
This is great! very handy! But as it's console, where does the startup log go (in case you need to debug it's start?)
by Brad Wood 06 Dec 2018 08:21 AM
Hi Mark, the console logs still go the same place they always do. You can view them with "server log" as well as looking at the log file on disk. If you need to debug a server, I recommend just running the start command manually in a terminal to debug it. NSSM also has a logging setting you can enable that will capture ALL the output of CommandBox including any output of the "server start" command itself prior to the actual server process coming online.