Cloud computing coursework:Saas 图片社交网站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
393 B

3 years ago
  1. from phshare import create_app
  2. # app = create_app()
  3. # if __name__ == "__main__":
  4. # app.run("127.0.0.1",3389,debug=True)
  5. import os
  6. from dotenv import load_dotenv
  7. dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
  8. if os.path.exists(dotenv_path):
  9. load_dotenv(dotenv_path)
  10. app = create_app('production')
  11. if __name__ == "__main__":
  12. app.run("127.0.0.1", 3389, debug=True)