run.py 287 B

123456789101112
  1. import os
  2. import sys
  3. from watermark_generate.app import create_app
  4. rootpath = str(os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
  5. sys.path.append(rootpath)
  6. # 运行
  7. if __name__ == "__main__":
  8. app = create_app()
  9. app.run(debug=False, host='0.0.0.0', port=5000)