From 59074995d4941812d9e1abe03b15f359bcd446b3 Mon Sep 17 00:00:00 2001 From: Rafe Goldberg Date: Mon, 9 Mar 2020 16:56:43 -0700 Subject: [PATCH] Configure Heroku review apps pipeline. (#513) * chore: add Procfile * chore: bootstrap app on heroku-prebuild * chore: override the heroku build, ya dummy * chore: update swagger files prebuild --- Procfile | 1 + package.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..0a95eb041 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: npx http-server example/dist --port $PORT \ No newline at end of file diff --git a/package.json b/package.json index 3dfe9cb0e..847c156ac 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": true, "description": "Open source components that make up ReadMe's API explorer", "scripts": { + "heroku-postbuild": "npm run bootstrap && node scripts/update-example-swagger-files && npm run build", "bootstrap": "lerna bootstrap", "build": "./build.sh & lerna run build", "clean": "lerna clean",