Use heroku-postbuild instead of bash syntax postinstall (#4)

This commit is contained in:
Mars Hall
2017-02-08 09:01:53 -08:00
committed by GitHub
parent 8004a30f9c
commit 3e34059697

View File

@@ -7,7 +7,7 @@
},
"scripts": {
"start": "node server",
"postinstall": "if [ \"$NODE_ENV\" = production ]; then cd react-ui/ && npm install --only=dev && npm install && npm run build; fi"
"heroku-postbuild": "cd react-ui/ && npm install --only=dev && npm install && npm run build"
},
"cacheDirectories": [
"node_modules",