zhaooyue
zhaooyue

Reputation: 43

Do I need to reset DB every time when I push to heroku?

When I push my local database to heroku postgresql, my current way is to heroku pg:reset, then using heroku pg:push local_db remote_db.

Is there any efficient way to do this rather than wiping my entire heroku database content and write new content every time?

Upvotes: 0

Views: 264

Answers (1)

user1746971
user1746971

Reputation:

  • Don't create anything other than test content locally
  • Any settings / configuration / static content, store this in code

In all my years developing, whether it be with Heroku or not I have never seen a reason to push to the database from dev to production more than once.

Upvotes: 3

Related Questions