From 68c62d41d2b77f4aa9dbb177e47acf6caa369074 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 2 Aug 2015 20:32:51 -0400 Subject: let's see if we can get Heroku to create the schema for us --- app.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app.json') diff --git a/app.json b/app.json index 4d1b3f2..10cc28d 100644 --- a/app.json +++ b/app.json @@ -1,5 +1,8 @@ { "addons": [ "heroku-postgresql:hobby-dev" - ] + ], + "scripts": { + "postdeploy": "node db/bootstrap.js" + } } -- cgit v1.2.3 From ac0e595a531e212e4885633eb043760bcc5d4946 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 2 Aug 2015 20:40:50 -0400 Subject: We probably need to install pg before we try to use it --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.json') diff --git a/app.json b/app.json index 10cc28d..7bc9460 100644 --- a/app.json +++ b/app.json @@ -3,6 +3,6 @@ "heroku-postgresql:hobby-dev" ], "scripts": { - "postdeploy": "node db/bootstrap.js" + "postdeploy": "npm install pg; node db/bootstrap.js" } } -- cgit v1.2.3