Merge pull request #76 from maltsev/heroku
Make whiteboard deployable to Heroku
This commit is contained in:
commit
9a57bc4f90
@ -7,7 +7,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --config config/webpack.build.js",
|
"build": "webpack --config config/webpack.build.js",
|
||||||
"start:dev": "node scripts/server.js --mode=development",
|
"start:dev": "node scripts/server.js --mode=development",
|
||||||
"start:prod": "npm run build && node scripts/server.js --mode=production",
|
"start:prod": "npm run build && npm run start",
|
||||||
|
"start": "node scripts/server.js --mode=production",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"pretty-quick": "pretty-quick",
|
"pretty-quick": "pretty-quick",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
@ -28,5 +28,5 @@ if (server_mode === SERVER_MODES.DEVELOPMENT) {
|
|||||||
startBackendServer(3000);
|
startBackendServer(3000);
|
||||||
} else {
|
} else {
|
||||||
console.info("Starting server in production mode.");
|
console.info("Starting server in production mode.");
|
||||||
startBackendServer(8080);
|
startBackendServer(process.env.PORT || 8080);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user