0

herokuのpythonからデフォルトのプログラムをコピーして貼り付けただけです。

import os
from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello():
    return 'Hello World!'

run(host='localhost', port=8080)

「ステータス0で終了しました」というエラーが返されますが、これは調査の結果、「正常に終了しました」という意味であることがわかりました。ウェブサイトでエラーが発生しているため、これを修正するにはどうすればよいですか "。他のトレースバックエラーは返されません。

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.
4

1 に答える 1