Hacker News new | ask | show | jobs
by Ozzie_osman 2158 days ago
YMMV, depending on your data. What we do is maintain a default staging environment and a prod environment. They are both continuously deployed off of master, so it's the same code, and we have staging populated with data that is similar to prod (just without real users... So it's just employees using it).

When we spin up a review app, it generates a backup of the staging db, restores it to the review app environment. That way all review apps have essentially a copy of the default staging data. That command (backup and restore for postgres) is like two lines of code.