Use heroku-postbuild instead of bash syntax postinstall

This commit is contained in:
Mars Hall
2017-02-08 08:55:26 -08:00
parent 2d4457b019
commit 12bdcdd296

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",