Blog 2020/5/8
<- previous | index | next ->
For locally developing a Flask application,
using mod_wsgi-express
instead of apache is a much quicker way to get started.
Simply run mod_wsgi-express start-server hello.wsgi
, then visit http://localhost:8000 (or, you can just run make
).
$ mod_wsgi-express start-server hello.wsgi
Server URL : http://localhost:8000/
Server Root : /var/tmp/mod_wsgi-localhost:8000:501
Server Conf : /var/tmp/mod_wsgi-localhost:8000:501/httpd.conf
Error Log File : /var/tmp/mod_wsgi-localhost:8000:501/error_log (warn)
Request Capacity : 5 (1 process * 5 threads)
Request Timeout : 60 (seconds)
Startup Timeout : 15 (seconds)
Queue Backlog : 100 (connections)
Queue Timeout : 45 (seconds)
Server Capacity : 20 (event/worker), 20 (prefork)
Server Backlog : 500 (connections)
Locale Setting : en_US.UTF-8
In another terminal, tail the error log:
tail -f /var/tmp/mod_wsgi-localhost:8000:501/error_log
When done, simply hit control+c to stop the server.
cool super ok