配置5

parent 3367b3e5
...@@ -7,7 +7,14 @@ ...@@ -7,7 +7,14 @@
# @Software : PyCharm # @Software : PyCharm
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
from app.api.app import app from app.api.app import app
from app.api.engine import env
from wsgiref import simple_server
if __name__ == '__main__': if __name__ == '__main__':
app.run('0.0.0.0', port=80, debug=True) # if env == 'dev':
# app.run('0.0.0.0', port=80, debug=True)
# else:
# app.run('0.0.0.0', port=80, debug=False)
httpd = simple_server.make_server('0.0.0.0', 80, app)
httpd.serve_forever()
#!/bin/bash #!/bin/bash
gunicorn -w 2 -k gevent -D -p tamp_order.pid -b 127.0.0.1:8000 app.api.app:api dev gunicorn -D -p tamp_order.pid -b 127.0.0.1:8000 app.api.app:api dev
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment