Right now we are hardcoding the following server configuration:
return Config(app=app, host="0.0.0.0", port=8000)
This makes the server available on the local network, but we need to expose it externally.
To do that, we'll need to pass the computer's IP address and let the user choose a port.
In order to do that, we must change the run command to accept the following arguments:
PORT_FLAGS = ("-p", "--port")
HOST_FLAGS = ("-h", "--host") # it may collide with the -h of the help command
Right now we are hardcoding the following server configuration:
This makes the server available on the local network, but we need to expose it externally.
To do that, we'll need to pass the computer's IP address and let the user choose a port.
In order to do that, we must change the
runcommand to accept the following arguments: