from flask_blog import app
if __name__ == '__main__':
    app.run(host='localhost', port=9874)



Exemple #2
0
from flask_blog import app

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

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

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

Exemple #5
0
#-*- coding:UTF-8 -*-

from flask_blog import app
app.run(host='0.0.0.0',port=3031,debug=True)
Exemple #6
0
from flask_blog import app

if __name__ == '__main__':
    app.run(host='127.0.0.1', port=8080, debug=True)
from flask_blog import app

if __name__ =="__main__":
    app.run()
Exemple #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)
Exemple #9
0
from flask_blog import app

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

from flask_blog import app

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

Exemple #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
Exemple #13
0
from flask_blog import app

if __name__ == '__main__':
    app.run(host='192.168.226.214', port=5000)  
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,
    )
Exemple #15
0
from flask_blog import app

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

from flask_blog import app

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

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000, threaded=True)
Exemple #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)
Exemple #19
0
from flask_blog import app  # create_appを使う様になったので、server.pyを使わない仕様になった。

if __name__ == '__main__':
	app.run()
Exemple #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)
Exemple #21
0
# coding: UTF-8
# server.py
from flask_blog import app

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

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