librelist archives

« back to archive

What's the best way to autoreload Falcon in Dev while coding?

What's the best way to autoreload Falcon in Dev while coding?

From:
William Hayes
Date:
2015-10-10 @ 17:15
Does anyone have a favorite method for this?  I’m using the:

if __name__ == '__main__':
    from wsgiref import simple_server

    host = "127.0.0.1"
    port = 8005 
    httpd = simple_server.make_server(host, port, api)
    print("Serving on {}:{}".format(host, port))
    httpd.serve_forever()

approach right now for running my REST API code during dev.  

Re: [falcon] What's the best way to autoreload Falcon in Dev while coding?

From:
Oğuz Yarımtepe
Date:
2015-10-12 @ 08:35
I am using the same method. What i really wonder is the production setup
indeed. I can be greatfull if people share their production configuration
and installation also.

On Sat, Oct 10, 2015 at 8:15 PM, William Hayes <whayes@cekeeper.com> wrote:

> Does anyone have a favorite method for this?  I’m using the:
>
> if __name__ == '__main__':
>     from wsgiref import simple_server
>
>     host = "127.0.0.1"
>     port = 8005
>     httpd =
>  simple_server.make_server(host, port, api)
>     print("Serving on {}:{}".format(host, port))
>     httpd.serve_forever()
>
>
> approach right now for running my REST API code during dev.
>



-- 
Oğuz Yarımtepe
http://about.me/oguzy