From 655570a554b5e3e161de6b07ece5512029985aef Mon Sep 17 00:00:00 2001 From: Willy Date: Wed, 8 Mar 2017 18:16:50 -0700 Subject: [PATCH] Copy the stage db data to the review apps This is necessary to make sure our migrations work properly on our review apps. --- app.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.json b/app.json index 8181c497..cf4efa71 100644 --- a/app.json +++ b/app.json @@ -2,8 +2,12 @@ "name": "encorelink", "description": "review apps", "scripts": { + "postdeploy": "pg_dump $STAGING_DATABASE_URL | psql $DATABASE_URL" }, "env": { + "STAGING_DATABASE_URL": { + "required": true + }, "NODE_ENV": { "required": true }