Added multiprocessing

This commit is contained in:
Channel Cat
2016-10-18 01:22:49 -07:00
parent 18aa937f29
commit 6f105a647e
10 changed files with 262 additions and 19 deletions

View File

@@ -15,5 +15,5 @@ app = Sanic("test")
async def test(request):
return json({"test": True})
app.run(host="0.0.0.0", port=sys.argv[1])
if __name__ == '__main__':
app.run(host="0.0.0.0", port=sys.argv[1])