Development web server¶
Introduction¶
Websauna uses Waitress based autoreloading web server for local development. See ws-pserve command. By default, the server binds all IPs of the computer and runs in port 6543.
Starting¶
Command line¶
First make sure your virtual environment is activated:
source venv/bin/activate
To start a local development web server in reload mode, point it to a development.ini:
ws-pserve ws://conf/development.ini --reload
Example output:
Starting subprocess with file monitor
Starting server in PID 75707.
serving on http://0.0.0.0:6543
To stop the server press CTRL + C.