From fa4f85eb32bfaafe829d71b9b35b0682dd2ab590 Mon Sep 17 00:00:00 2001 From: Luca Fabbri Date: Fri, 5 Jun 2020 02:08:14 +0200 Subject: [PATCH] Fixing rst format issue (#1865) Co-authored-by: 7 --- docs/sanic/deploying.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sanic/deploying.rst b/docs/sanic/deploying.rst index 55fae759..e4da9d65 100644 --- a/docs/sanic/deploying.rst +++ b/docs/sanic/deploying.rst @@ -50,7 +50,9 @@ If you like using command line arguments, you can launch a Sanic webserver by executing the module. For example, if you initialized Sanic as `app` in a file named `server.py`, you could run the server like so: -.. python -m sanic server.app --host=0.0.0.0 --port=1337 --workers=4 +:: + + python -m sanic server.app --host=0.0.0.0 --port=1337 --workers=4 With this way of running sanic, it is not necessary to invoke `app.run` in your Python file. If you do, make sure you wrap it so that it only executes when