from flask_blog import app if __name__ == '__main__': app.run(host='localhost', port=9874)
from flask_blog import app if __name__ == "__main__": app.run(debug=True, port=8000)
# encoding: utf-8 from flask_blog import app if __name__ == "__main__": app.run(host="127.0.0.1", port="5000", debug=True)
from flask_blog import app if __name__ == '__main__': app.run(debug=True, host="0.0.0.0")
#-*- coding:UTF-8 -*- from flask_blog import app app.run(host='0.0.0.0',port=3031,debug=True)
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()
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)
from flask_blog import app if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')
from flask_blog import app app.run(debug=True, port=9999)
from flask_blog import app if __name__ == '__main__': app.run(debug=True, threaded=False)
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
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, )
from flask_blog import app # server.py を実行された時に(python server.go) # 実行される処理を記述することができます。 if __name__ == '__main__': app.run(host='0.0.0.0')
# server.py # サーバーの起動ファイル from flask_blog import app if __name__ == '__main__': app.run() # 起動するモードは、config.py で設定する
from flask_blog import app if __name__ == '__main__': app.run(host='0.0.0.0', port=5000, threaded=True)
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)
from flask_blog import app # create_appを使う様になったので、server.pyを使わない仕様になった。 if __name__ == '__main__': app.run()
""" 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)
# coding: UTF-8 # server.py from flask_blog import app # このファイルが直接実行されたときの処理をTureケースに書き込む if __name__ == '__main__': app.run(debug = True)
from flask_blog import app if __name__ == "__main__": app.run(host='0.0.0.0', debug=True)