質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Django

DjangoはPythonで書かれた、オープンソースウェブアプリケーションのフレームワークです。複雑なデータベースを扱うウェブサイトを開発する際に必要な労力を減らす為にデザインされました。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

1回答

367閲覧

Herokuにデプロイできません。

reiyakumagae

総合スコア1

Django

DjangoはPythonで書かれた、オープンソースウェブアプリケーションのフレームワークです。複雑なデータベースを扱うウェブサイトを開発する際に必要な労力を減らす為にデザインされました。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Webサイト

一つのドメイン上に存在するWebページの集合体をWebサイトと呼びます。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2021/04/28 15:12

Herokuにデプロイできません。

djangoでお料理日記のアプリ開発をしている中で、Herokuを使ってアプリを公開したいと思い試行錯誤した結果、解決策が見当たらないので質問させて下さい。

発生している問題・エラーメッセージ(一部上部を抜粋しています)

(reikumagohann) kumagaereiya@MacBook-Pro-2 reikuma-blog % git push heroku master , , , remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 3ea13eafd0b3d167f3c555d1e4b14fc12c406390 remote: ! remote: ! We have detected that you have triggered a build from source code with version 3ea13eafd0b3d167f3c555d1e4b14fc12c406390 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to gohannblog. remote: To https://git.heroku.com/gohannblog.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/gohannblog.git'

試したこと

キーになる一文を検索し解決策を探すもエラーコードは変わらず。

補足情報(FW/ツールのバージョンなど)

Procfile

web: gunicorn gohannblog.wsgi --log-file -

requirements.txt

asgiref==3.3.4 certifi==2020.12.5 chardet==4.0.0 dj-database-url==0.5.0 Django==3.2 django-heroku==0.0.0 gunicorn==20.1.0 heroku==0.1.4 idna==2.10 python-dateutil==1.5 pytz==2021.1 requests==2.25.1 sqlparse==0.4.1 urllib3==1.26.4 whitenoise==5.2.0

runtime.txt

python-3.9.4

どなたかご意見、ご指導賜れれば幸いです。
宜しくお願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

remote: ! We have detected that you have triggered a build from source code with version 3ea13eafd0b3d167f3c555d1e4b14fc12c406390 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.

機械翻訳でも良いので、エラーを読みましょう。

remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version

ご丁寧にエラーの内容を解説したURLまで記載してくれています。

投稿2021/04/28 15:39

mather

総合スコア6753

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問