7
8

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 5 years have passed since last update.

【herokuコマンド】コマンド集

Posted at

【herokuコマンド】アプリ名変更
【herokuコマンド】createからdestroyまで

上記記事でもherokuコマンドを紹介しましたが、今回は上記であまりふれていないコマンドについてもまとめようと思います。

ログイン

$heroku login

ログアウト

$heroku logout

アプリのメンテナンスモード切り替え

# メンテナンスモードにする
$heroku maintenance:on 

# メンテナンスモードを解除
$heroku maintenance:off

メンテナンスモードのアプリにアクセスすると、ユーザーにはメンテナンス中のページが表示されます。

アプリをブラウザで開く

$heroku open

ログ表示

$heroku logs

ログ表示(リアルタイム)

$heroku logs -t 

# もしくは以下

$heroku logs --tail

上記で、ストリーミング状態でログを表示することができます。

アプリの情報を表示

$heroku apps:info

アプリのステータス(プロセス)確認

$heroku ps

ドメイン表示

$heroku domains

Heroku上でコマンドを実行

$heroku run bash

上記のコマンドでbashを使用することができる。
exitコマンドで抜けることができる。

Herokuアプリ一覧の表示

$heroku list

heroku-cliのバージョンの確認

$heroku -v
7
8
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
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?