43
48

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のコマンドメモ

Last updated at Posted at 2014-12-19

よく使うコマンドを自分用にメモメモ

##Heroku CLIのインストール

事前に https://toolbelt.heroku.com/ からHerokuのCLIをダウンロードしておく。

##各コマンド

###ヘルプ(実はこれだけで充分)

heroku help
heroku help [COMMAND] # heroku help addons など

###アプリのデプロイ

cd YOUR_APP_DIR # git管理前提
heroku create --app APP_NAME # 初回のみ
git push heroku master

###アプリ再起動

heroku restart --app APP_NAME

###ログ確認

heroku logs --tail

###コマンド実行

heroku run [Command]  # heroku run 'node -v' など

###デプロイ先にログイン

heroku run bash

###環境変数

heroku config # 一覧表示
heroku config:set KEY=VALUE # 値をセット
heroku config:add KEY=VALUE # config:setと同じ
heroku config:get KEY # 値をゲット
heroku config:remove KEY # 値をクリア

43
48
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
43
48

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?