adding scripts for heroku to properly run express app to serve files

This commit is contained in:
Arjun Patel
2019-06-09 23:13:10 -07:00
parent a63268793a
commit 280f2cb6be
6 changed files with 329 additions and 150 deletions
+3 -1
View File
@@ -7,7 +7,8 @@
"start:mac": "NODE_ENV=development webpack-dev-server --config ./webpack.config.js --mode development --color --progress",
"start:windows": "set NODE_ENV=development& webpack-dev-server --config ./webpack.config.js --mode development --color --progress",
"build": "set NODE_ENV=production& webpack --mode production --color --progress",
"heroku-postbuild": "webpack -p"
"postinstall": "webpack -p",
"start": "node heroku_server.js"
},
"repository": {
"type": "git",
@@ -23,6 +24,7 @@
"@material-ui/core": "^3.8.1",
"@material-ui/icons": "^3.0.1",
"axios": "^0.19.0",
"express": "^4.17.1",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-router-dom": "^4.3.1",