0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

herokuへのデプロイができない:runtime.txtのうっかり誤字

Posted at

herokuでPython製アプリをデプロイするときには、runtime.txtにPythonのverを記載しておく必要がある。

remote: ! Requested runtime (python 3.9.2) is not available for this stack (heroku-20).

このエラーメッセージが出た時そんなバカな!と叫んだ。

python-3.9.2 on all supported stacks
heroku

この通り、3.9.2はherokuではちゃんとサポートされてると書いてるのに!
これでしばらく頭を抱えて、ふと気づいた。

サポートされてる方

python-3.9.2

されてない方。

python 3.9.2

結論。-の入れ忘れに気をつけよう。(なおその時作ってたアプリはデプロイ成功しても中身がエラーを起こしていた。徒労感……

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?