0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Herokuコマンド

Last updated at Posted at 2022-01-23

<よく使うコマンド>
・heroku open
・heroku config
・git remote set-url heroku https://git.heroku.com/アプリ名.git
  //紐づけ変更
・git remote -v
・heroku logs
・heroku restart web.1
・heroku restart

(デプロイ手順)
・heroku login   //Herokuログイン

・heroku container:login   //Herokuコンテナログイン

・chmod +x docker/app/run-apache2.sh   //権限付与

・heroku create   //アプリ作成

・heroku container:push web   //コンテナプッシュ

・heroku container:release web   //コンテナリリース

(データベースと接続)
・heroku addons:create cleardb:ignite   //curiadbをインストール

・heroku config | grep CLEARDB_DATABASE_URL   //環境変数の取得、設定
 ・heroku config:add DB_USERNAME=~
 ・heroku config:add DB_PASSWORD=~
 ・heroku config:add DB_HOST=~
 ・heroku config:add DB_DATABASE=~

・heroku config   //環境変数設定の確認

・heroku container:push web   //プッシュ

・heroku container:release web   //リリース

・heroku open   //サイトオープン

・heroku pg:reset DATABASE   //データベース削除

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?