herokuでpythonファイルを動かしたい
herokuでpythonファイルを動かそうとしたのですが、うまく動きません。
発生している問題・エラーメッセージ
https://qiita.com/enomotok_/items/41275dd904c8aa774e72
本当は、上記を参考に、自環境で作成したpythonコードを入れようと思ったのですが(作りたかったのはtwitterbotではないですので、pythonファイル自体は違います)、
git push heroku master
を行うときに下記のエラーが出、断念。
fatal: 'heroku' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
その後、もしかしたら、自分のコードが問題ではなく、別の所に問題があるのでは?と思いhttps://qiita.com/it_ks/items/afd1bdb792d41d0e1145
を参考にサンプルを入れようとおもったのですが、
git push heroku master
を行うときに同様のエラーが出ました。
試したこと
https://qiita.com/yyyske/items/e0c2bb615daa323cfd90
https://qiita.com/sayama0402/items/e2c9e65786259dc55e11
上記のサイトを参考に .git/config を
[remote "origin"] url = https://github.com/heroku/python-getting-started.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master rebase = true [remote "heroku"] url = https://git.heroku.com/evening-headland-43051.git fetch = +refs/heads/*:refs/remotes/heroku/*
の様に修正したりしましたが(複数サイトがあり、それぞれのサイトでやり方が違ったため、何通りか試しました)同じエラーが出ました。
補足情報(FW/ツールのバージョンなど)
Windows10
Python3.6
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。