blaix / woma

A python web development framework
MIT License
5 stars 0 forks source link

local dev server #23

Open blaix opened 8 years ago

blaix commented 8 years ago

There should be a command to fire up a dev server locally

blaix commented 8 years ago

Instead of a command, there should be a runner that you can use by executing a normal python file. Something like this:

# app.py
from woma.runner import Runner
runner = Runner(router) # accepts a wsgi app (router or endpoint)
runner.run() # accepts server options
$ python app.py

Use http://werkzeug.pocoo.org/docs/0.11/serving/ under the hood.

blaix commented 7 years ago

Use http://werkzeug.pocoo.org/docs/0.11/serving/ under the hood.

or http://docs.pylonsproject.org/projects/waitress/en/latest/