From 033e91f8df2e0e370ac1631ffa0509d83e92ec92 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 17 Oct 2018 05:15:25 -0700 Subject: [PATCH] name --- docs/source/deployment.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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``::