diff --git a/docs/source/deployment.rst b/docs/source/deployment.rst index 7d812b0..9df4016 100644 --- a/docs/source/deployment.rst +++ b/docs/source/deployment.rst @@ -29,7 +29,8 @@ Write out a ``api.py``:: async def hello(req, resp): resp.text = "hello, world!" - api.run() + if __name__ == "__main__": + api.run() Write out a ``Procfile``::