启动脚本

parent 7d7eea10
...@@ -8,13 +8,10 @@ ...@@ -8,13 +8,10 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
from app.api.app import app from app.api.app import app
from app.api.engine import env from app.api.engine import env
from wsgiref import simple_server
if __name__ == '__main__': if __name__ == '__main__':
# if env == 'dev': if env == 'dev':
# app.run('0.0.0.0', port=80, debug=True) app.run('0.0.0.0', port=80, debug=True)
# else: else:
# app.run('0.0.0.0', port=80, debug=False) 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 -D -p tamp_order.pid -b 127.0.0.1:8000 app.api.app:api dev gunicorn -p tamp_order.pid -b 127.0.0.1:80 app.api.app:app test
\ 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