Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poc#2 heroku #15

Closed
wants to merge 4 commits into from
Closed

Poc#2 heroku #15

wants to merge 4 commits into from

Conversation

gotoh-poclab
Copy link
Collaborator

https://dashboard.heroku.com/apps/qin-todo

で、アップロード検討中です。

dockerでコンテナを作成しているので、そのままdockerで行うのが良いかもしれないのですが、

最初に言われた

Procofile
runtime.txt

を入れる方法で試しました。

最初は、Build failedになって調べていくうちにrequirements.txtが必要なのかと思い、poetryからrequirements.txtを作成しました。
https://minerva.mamansoft.net/Poetry/Poetry%E3%81%A7requirements.txt%E3%82%92%E4%BD%9C%E6%88%90

Procofile
runtime.txt
requirements.txt

を加えることで、buildは成功したと表示が出ましたがApplication errorと表示されています。
スクリーンショット 2022-02-27 12 25 21
https://qin-todo.herokuapp.com/

右上のMoreから、view logsでエラーが出ていることを確認したのですが、よくわからなかったです。
スクリーンショット 2022-02-27 12 26 50

エラーメッセージとしては、
at=error code=H10 desc="App crashed" method=GET path="/" host=qin-todo.herokuapp.com

などが出ていました。

もし解決方法などが分かりましたら、教えて欲しいです。

@gotoh-poclab gotoh-poclab linked an issue Feb 27, 2022 that may be closed by this pull request
@takasaki376
Copy link
Collaborator

たしかに、私がお伝えしたやり方はコンテナ使っていないです。
コンテナ使っていると、Slackに投げてもらった通り、こちらの通りだと思います。

@gotoh-poclab
Copy link
Collaborator Author

ありがとうございます。
heroku.yml を使用して Docker イメージをビルドする方法を勉強してみます。

@takasaki376
Copy link
Collaborator

setupの部分は必要というのは、何かの情報でしょうか?
公式ドキュメント以外に参照した情報があれば教えてください。

フロントがNuxtですが、Vercelとの組み合わせの設定です。heroku側のデプロイだけなら多分この内容と同じ手順でできそうな気がします。
https://ikeyu0806.hatenablog.com/entry/2021/08/29/162442

@gotoh-poclab
Copy link
Collaborator Author

教えてもらった通りHeroku CLIをインストールして、
https://devcenter.heroku.com/categories/command-line

heroku stack:set container

でdockerのコンテイナーからdeployできるようにしたら、デプロイ自体はできるようになりました。

こっちのpull requestで引き続き検討します。
#14

@gotoh-poclab gotoh-poclab deleted the poc#2_heroku branch March 6, 2022 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(1)Herokuデプロイ
2 participants