Пример #1
0
from flask_blog import app
if __name__ == '__main__':
    app.run(host='localhost', port=9874)



Пример #2
0
from flask_blog import app

if __name__ == "__main__":
    app.run(debug=True, port=8000)
Пример #3
0
# encoding: utf-8
from flask_blog import app

if __name__ == "__main__":
    app.run(host="127.0.0.1", port="5000", debug=True)
Пример #4
0
from flask_blog import app

if __name__ == '__main__':
    app.run(debug=True, host="0.0.0.0")

Пример #5
0
#-*- coding:UTF-8 -*-

from flask_blog import app
app.run(host='0.0.0.0',port=3031,debug=True)
Пример #6
0
from flask_blog import app

if __name__ == '__main__':
    app.run(host='127.0.0.1', port=8080, debug=True)
Пример #7
0
from flask_blog import app

if __name__ =="__main__":
    app.run()
Пример #8
0
from flask_blog import app
#from waitress import serve

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080)
    #serve(app, host='0.0.0.0', port=8080)
Пример #9
0
from flask_blog import app

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0')
Пример #10
0
from flask_blog import app
app.run(debug=True, port=9999)
Пример #11
0
   

from flask_blog import app

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

Пример #12
0
from flask_blog import app

if __name__ == '__main__':  # This conditional runs in Flask app in debug
    app.run(debug=True)  # mode if script is being ran directly
Пример #13
0
from flask_blog import app

if __name__ == '__main__':
    app.run(host='192.168.226.214', port=5000)  
Пример #14
0
import os
import ssl

from flask_blog import app

port = int(os.environ.get("port")) if os.environ.get("port") else 5000

if __name__ == "__main__":
    context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
    context.load_cert_chain("ssl/server.crt", "ssl/server.key")
    app.run(
        port=port,
        ssl_context=context,
        threaded=True,
        debug=True,
    )
Пример #15
0
from flask_blog import app

# server.py を実行された時に(python server.go)
# 実行される処理を記述することができます。
if __name__ == '__main__':
    app.run(host='0.0.0.0')
Пример #16
0
# server.py
# サーバーの起動ファイル

from flask_blog import app

if __name__ == '__main__':
    app.run()   # 起動するモードは、config.py で設定する
Пример #17
0
from flask_blog import app

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, threaded=True)
Пример #18
0
from flask_blog import app
import os

if __name__ == "__main__":
    app.run(host=os.getenv('IP', '127.0.0.1'),
            port=int(os.getenv('PORT', 5000)),
            debug=True)
Пример #19
0
from flask_blog import app  # create_appを使う様になったので、server.pyを使わない仕様になった。

if __name__ == '__main__':
	app.run()
Пример #20
0
"""
This script runs the flask_blog application using a development server.
"""

from os import environ
from flask_blog import app

if __name__ == '__main__':
    HOST = environ.get('SERVER_HOST', 'localhost')
    try:
        PORT = int(environ.get('SERVER_PORT', '5555'))
    except ValueError:
        PORT = 5555
    app.run(HOST, PORT)
Пример #21
0
# coding: UTF-8
# server.py
from flask_blog import app

# このファイルが直接実行されたときの処理をTureケースに書き込む
if __name__ == '__main__':
    app.run(debug = True)
Пример #22
0
from flask_blog import app

if __name__ == "__main__":
    app.run(host='0.0.0.0', debug=True)