127.0.0.1and will create a
server.jsonfile in your webroot. We can add various options to
server.jsonto customise our server. Here's an example:
myApp, meaning I can now start the server from any directory by simply calling
start myApp. I've also specified a specific port,
60000, but you can specify any port you want, or just remove that to start on a random port each time. Lastly, I've enabled URL rewriting, and pointing the URL rewrite configuration file to the
urlrewrite.xmlwhich is included in CFWheels 2.x. (If you've used the
wheels newcommand to create your app, this will already be done for you).
myapp.localrunning on port 80. You can install it via
install commandbox-hostupdaterwhen running the box shell with administrator privileges.
server forget myapp. Note the status of the servers on the list is somewhat unreliable, as you it only remembers the last known state of the server: so if you start a server and then turn on your local machine, it may remember it as
runningwhich is why we recommend the use of
force: truein the
server.json, or at runtime with the
box install, which will install the dependencies, and load them into the running server within 60 seconds.