49
72

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

Herokuのコマンドメモ

Last updated at Posted at 2014-05-28

herokuへ初回PUSH

$ cd <レポジトリ名>
$ git init
$ heroku create <アプリ名> 
$ heroku git:remote -a <アプリ名>
# addした名前を確認出来ます
$ git remote -v
$ git add .
$ git commit -c "comment"
$ git push <アプリ名> master

herokuのログを確認する

$ heroku logs

データベースのパスを取得する

※clearDBの場合

$ heroku config --app <アプリ名>
CLEARDB_DATABASE_URL:mysql://ユーザ名:パスワード@サーバ名(ホスト名)/データベース?reconnect =true

heroku appの一覧表示

$ heroku apps

アプリの概要を表示

$ heroku info --app <アプリ名>

コンフィグを表示

$ heroku config

タイムゾーンを設定

$ heroku config:add TZ=Asia/Tokyo

参考:

https://qiita.com/chihiro/items/b8a3ef54716842dd115a
https://qiita.com/Horie1024/items/85688099707610f70fa6

49
72
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
49
72

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?