From 25e35b650d55e71b3af5b7725cdb8318a15137a2 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 21 Apr 2017 22:53:45 -0700 Subject: [PATCH] Set development process to threaded --- run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.py b/run.py index 6df3c74..4cb2554 100644 --- a/run.py +++ b/run.py @@ -4,9 +4,9 @@ from titanembeds.app import app def init_debug(): import os from flask import jsonify, request - + os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' # Testing oauthlib - + # Session viewer https://gist.github.com/babldev/502364a3f7c9bafaa6db def decode_flask_cookie(secret_key, cookie_str): import hashlib @@ -20,7 +20,7 @@ def init_debug(): } s = URLSafeTimedSerializer(secret_key, salt=salt, serializer=serializer, signer_kwargs=signer_kwargs) return s.loads(cookie_str) - + @app.route("/session") def session(): cookie = request.cookies.get('session') @@ -32,4 +32,4 @@ def init_debug(): if __name__ == "__main__": init_debug() - app.run(host="0.0.0.0",port=3000,debug=True) + app.run(host="0.0.0.0",port=3000,debug=True,processes=3)