12345678910111213141516 |
- from models import create_app
- import logging
- logger = logging.getLogger(__name__)
- app = create_app()
- if __name__ == '__main__':
- logging.basicConfig(
- level=logging.INFO,
- format='%(asctime)s %(levelname)s %(message)s')
- #app.run(host='0.0.0.0', debug=True, port=5000)
- app.run(host='0.0.0.0', debug=True, port=5000)
- # app.run(host='139.162.119.173', debug=True, port=5000)
- #app.run(host='139.162.119.173', debug=True, port=5000, ssl_context=('/etc/letsencrypt/live/api.ptt.cx/cert.pem','/etc/letsencrypt/live/api.ptt.cx/privkey.pem'))
|