LoginSignup
156
173

More than 5 years have passed since last update.

よく使うHerokuコマンド

Last updated at Posted at 2014-02-14

使用状況により随時アップデートします。

SSH Keys

キー一覧表示

heroku keys

キーの追加

heroku keys:add

詳細
https://devcenter.heroku.com/articles/keys

環境変数

環境変数の確認

heroku config

環境変数の設定

heroku config:set PASSWORD=password

アドオン

アドオンの確認

heroku addons

アドオン追加

heroku addons:add mongohq

その他の確認

任意のコマンド実行

heroku run "ls -l"

Rails console

heroku run rails console

ログ確認

heroku logs

ログ確認(リアルタイム)

heroku logs --tail

アプリステータス確認

heroku ps

ブラウザで開く

heroku open

コマンドの使い方

heroku help logs

初回

アプリ作成

git init
git add .
git commit -m "init"
heroku create

デプロイ

git commit -m 'update' .
git push heroku master

既存アプリ

チェックアウト

heroku git:clone -a myapp
156
173
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
156
173