自分で試したこと FLASK_APP=flaskr/main.py と指定して実行してみました。 すると出たエラーはこちらです。 * Serving Flask app 'flaskr/main.py' (lazy loading) * Environment: development * Debug mode: on Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: While imp...
(virt) ~/eb-flask$python application.py* Serving Flask app "application" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL...
* Debug mode: on * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger PIN: 301-577-841 flaskに付属する簡易サーバーが立ち上がります。※warningにもある通りこの簡易サーバーを本番サーバーとして運用することは辞めまし...
(venv) ubuntu@ip-172-31-31-102:~/deployedapp$ flask run --host=0.0.0.0 --port=8080 * Serving Flask app "app" (lazy loading) * Environment: development * Debug mode: on * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * ...
chdirでプロジェクトのルートディレクトリに移動しないと相対インポートが正しく動かない可能性があるので忘れずに設定します。(インターネット上の記事では全てのファイルを1つのディレクトリに配置しているため、chdirが省略されていることが多いです。しかし、実際のプロジェクトではそ...
api_1 |*Debug mode: on api_1 |*Running on http://0.0.0.0:5000/(Press CTRL+C to quit)api_1 |*Restarting withstatapi_1 |*Debugger is active! api_1 |*Debugger PIN: 221-047-422 はい。 もし、記事に沿って環境構築されている場合、まだ実装がないので、http://0.0.0.0:5000にアクセ...
フロントエンド側は、先ほどのfetchで投げる際に、mode: "cors"を指定します。(下記参照) データの受け渡し部分はどうやって書くの? やっとここまで来ました。 frontend constonClickHandler=async()=>{constresponse=awaitfetch(URL,{mode:"cors",method:"post",headers:{"Content-Type":"applicatio...
# debug - Turn on debugging in the server. This limits the number of # worker processes to 1 and changes some error handling that's # sent to clients. # # True or False # # spew - Install a trace function that spews every line of Python ...