Python初心者です。lineのchat botを作成したく
https://www.python-beginners.com/entry/20190221/1550754314#section1
のサイトをなぞりながら進めてきたのですが、最後の$git push heroku mianでエラーが出てしまい中々解決できずにいます。解決方法を教えてもらえると幸いです。
ちなみに、おうむ返しをしてくれるchatbotです。
flaskとline-bot-sdkはpipenvでインストールしてます。
エラーコード
(isseiyaguchi) isseiyaguchi@IsseinoMacBook-Pro chatbot % git push heroku main Enumerating objects: 14, done. Counting objects: 100% (14/14), done. Delta compression using up to 8 threads Compressing objects: 100% (13/13), done. Writing objects: 100% (14/14), 2.62 KiB | 1.31 MiB/s, done. Total 14 (delta 4), reused 0 (delta 0), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Determining which buildpack to use for this app remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. remote: See https://devcenter.heroku.com/articles/buildpacks remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 6d72f6ad0735ae7ef77d147f89bfa14c8f9409f4 remote: ! remote: ! We have detected that you have triggered a build from source code with version 6d72f6ad0735ae7ef77d147f89bfa14c8f9409f4 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 isseichat. remote: To https://git.heroku.com/isseichat.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/isseichat.git'
試したこと
・リモートの変更をマージしてからpush
$git fetch
$git rebase heroku/main
回答1件
あなたの回答
tips
プレビュー