アプリをHerokuにデプロイ

herokuに登録

herokuCLIをインストール

ターミナルからherokuにログイン
”Logged in as メールアドレス”と表示されれば成功

pip install gunicorn

pip freeze > requirements.txt

Procfileという名前のファイルを作成
一文を追加
web: gunicorn ファイル名:app

runtime.txt作成
一文を追加
python -V”で確認
python-3.6.5

heroku create アプリケーション名
	Creating ⬢ hatebu-nav... done
	https://hatebu-nav.herokuapp.com/ | https://git.heroku.com/hatebu-nav.git

git init
git config user.name "名前"
git config user.email メールアドレス
git add -A .
git commit -m 'myapp'

git push heroku master
	remote: Verifying deploy... done.
	  To https://git.heroku.com/hatebu-nav.git
	   * [new branch]      master -> master
   
エラー時
git remote add heroku https://git.heroku.com/アプリケーション名.git

heroku open