Beispiel #1
0
from test import app

if __file__ == "__main__"
    app.run(host='0.0.0.0', debug=True)
Beispiel #2
0
from test import app

if __name__ == "__main__":
    app.run()  
Beispiel #3
0
# grab the app and run it
from test import app

if __name__ == '__main__':
    app.run(debug=True)

Beispiel #4
0
from test import app

if __name__ == '__main__':
    app.run(port=200)
Beispiel #5
0
from test import app as application

if __name__ == "__main__":
    application.run()
Beispiel #6
0
from test import app, db
if __name__ == '__main__':
    db.create_all()
    app.run(host='0.0.0.0', port=5000, debug=True)
Beispiel #7
0
import os
# import logging

# from logging.handlers import RotatingFileHandler
from test import app as application

# application.logger.setLevel(logging.INFO)
# handler = RotatingFileHandler('application.log',
#                                maxBytes=10000, backupCount=5)
# formatter = logging.Formatter("%(asctime)s - %(module)s - %(levelname)s - %(message)s")
# handler.setFormatter(formatter)
# application.logger.addHandler(handler)
WWE = 1234
POS = 1233456

if __name__ == '__main__':
    application.run(host='0.0.0.0', port=int(os.environ.get("PORT", 5000)))

Beispiel #8
0
from test import app

if __name__ == "__main__":
    app.run()
 def test_run(self):
     self.assertIsNone(app.run())
Beispiel #10
0
# -*- coding: utf-8 -*-
from test import app

app.config['DEBUG'] = True
app.prepare()
app.run('0.0.0.0', port=3000, threaded=True)
Beispiel #11
0
from test import app
if __name__ == "__main__":
    app.run('0.0.0.0',
            debug=True,
            port=443,
            ssl_context=('/root/projects/Nginx/1_bigseriouslee.top_bundle.crt',
                         '/root/projects/Nginx/2_bigseriouslee.top.key'))
Beispiel #12
0
from test import app
import sys
import os

if __name__ == '__main__':
#    sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
    app.run(host='localhost', port=8080, reloader=True)