LoginSignup
5
6

More than 5 years have passed since last update.

Heroku コマンド一覧

Last updated at Posted at 2014-01-29

Herokuでマイグレーション

> heroku run rake db:migrate

Herokuでシード、初期で登録してあるデータを反映させる場合に使う

> heroku run rake db:seed

Herokuはデータベースを削除できないのでデータベースをリセットする

> heroku pg:reset DATABASE

これを入力した後に下記のコメントがでてコンソールモードになってアプリ名の所を入力すれば完了

!    WARNING: Destructive Action
!    This command will affect the app: アプリ名
!    To proceed, type "アプリ名" or re-run this command with --confirm アプリ名

> アプリ名

サイトに接続

> heroku open

サーバーのログを確認する

> heroku logs
5
6
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
5
6