LoginSignup
2
3

More than 1 year has passed since last update.

streamlitで作成したアプリをデプロイするまで

Posted at

Streamlitでアプリを作成し、Herokuにデプロイする方法を備忘録も兼ねて記載する。

gitのダウンロードとHrokuCLIをPCにダウンロードしておく

手元のターミナルにて

heroku login

を入力してHerokuにログインする。
次に

heroku create -a アプリケーションの名前

を入力する。
名前の重複などがあると作成ができない。
また名前はアルファベット小文字と数字、ハイフンくらいしか使えない(はず...)
次にGitの初期化を行う。

git init

次にリモートレポジトリに登録する。

git remote add heroku https://git.heroku.com/アプリケーションの名前.git
git add .

コミットメッセージを追加

git commit -m 'メモを適当に'

heroku側にpushする。

git push heroku master

以上でアプリをデプロイすることができます。
以降アプリを変更した後は

git add
git commit -m 'メモを適当に'
git push heroku master

で変更することができます。

2
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3