python flask レンタルサーバー上でのエラーデバッグ方法について
解決したいこと
windowsのローカル環境上では問題なく動作するpython flaskのアプリケーションをレンタルサーバー(lolipop)で動作させようとするとエラーが出ます。
エラー内容は 500 Internal Server Error です。
パーミッションや改行コードなどを見直して部分的に表示できるようになりましたが、100%動作するところまではできていません。
ファイル構成は下記になります。
app.py
cgi.index
static
templates/index.html
.pyファイルは1つ、index.html も1つの構成です。
formによるpostによって1つのページを更新しています。
それぞれのエラー個所の抜粋は下記になります。
3つあるformのうち1つは機能します。ルーティンも機能しています
残り2つのformのpost、ルーティンがレンタルサーバー上では機能していません。
<form action="/gamestart" method="post">
<input class="start_button" type="submit" value="game start">
</form>
<form action="/play_step2" method="post">
<input type="radio" name="position" value="1" id="item-1" required >
<label class="radio-inline__label" for="item-1">1</label>
</form>
<form action="/play_step3" method="post">
<input input" type="radio" name="player_select" value="1" id="item-a" >
<label class="radio-inline__label" for="item-a">もう1枚カードをもらう</label>
</form>
@app.route('/')
def index():
(略)
return render_template('index.html')
@app.route('/gamestart' , methods=['POST'])
def gamestart():
(略)
return render_template('index.html')
@app.route('/play_step2' , methods=['POST'])
(略)
return render_template('index.html')
@app.route('/play_step3' , methods=['POST'])
(略)
return render_template('index.html')
レンタルサーバー上だけで、コード内にエラーが発生しているのだろうと思いますが、エラー詳細を確認する方法がないため、どこが問題なのかわかりません。
何かやりようがあれば教えてください。
※windowsローカル環境上では問題なく動作します。