LoginSignup
0

More than 5 years have passed since last update.

HerokuでStaging環境のデータベースを作成するときに使うコマンド

Posted at
  • 'heroku' => 本番環境
  • 'staging' => ステージング環境
# データベースの利用状況を確認
heroku pg:info -a appname
heroku pg:info -a appname-stg

# データベースのバックアップ状況を確認
heroku pg:backups --remote heroku
heroku pg:backups --remote staging

=== Backups
heroku pg:backups:capture

=== Restores
heroku pg:backups:restore to restore a backup

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
0