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

(1)Herokuデプロイ #9

Closed
takasaki376 opened this issue Feb 13, 2022 · 2 comments · Fixed by #40
Closed

(1)Herokuデプロイ #9

takasaki376 opened this issue Feb 13, 2022 · 2 comments · Fixed by #40
Assignees

Comments

@takasaki376
Copy link
Collaborator

takasaki376 commented Feb 13, 2022

ゴール

Herokuデプロイする

やること

  • 対応概要(1)まで完了したらデプロイをお願いします。
  • こちらを参考に、Procfile ファイルと、runtime.txtファイルを作成してください。
  • runtime.txtファイルに記載するバージョンはローカル環境と合わせてください。
  • Docker環境に接続し、pip freeze > requirements.txtとコマンドを実行し、ライブラリをファイル出力してください。
  • こちらを参考に、heroku.ymlを作成してください。
  • UUIDについては、postgresqlに拡張機能を追加する。

参考

HerokuにPython(FastAPI)アプリをデプロイする手順
※こちらはgithub連携を行わず、Herokuのgitを使用しているため、デプロイの部分のみ下記のページ参照
HerokuでGitHub連携設定
CORS設定(公式ページ)
UUIDの自動生成

@takasaki376 takasaki376 changed the title (2)認証用のパッケージインストール (1)Herokuデプロイ Feb 13, 2022
@gotoh-poclab
Copy link
Collaborator

こんなのもありました。

FastAPI+Postgres on Heroku
https://zenn.dev/denham/scraps/3603c2fcfd076d

@takasaki376
Copy link
Collaborator Author

@gotoh-poclab @mo-ri-regen

FastAPI+Postgres on Heroku
https://zenn.dev/denham/scraps/3603c2fcfd076d

このコードをベースにする方がよいかもしれません。
ただmain.pyの中にすべて含まれているため、Modelsは分けたいですね。

@gotoh-poclab gotoh-poclab linked a pull request Feb 27, 2022 that will close this issue
@takasaki376 takasaki376 linked a pull request Mar 16, 2022 that will close this issue
@gotoh-poclab gotoh-poclab self-assigned this Mar 20, 2022
@gotoh-poclab gotoh-poclab linked a pull request May 15, 2022 that will close this issue
takasaki376 added a commit that referenced this issue May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants