Merge pull request #76 from maltsev/heroku

Make whiteboard deployable to Heroku
This commit is contained in:
Cracker 2020-12-08 16:50:05 +01:00 committed by GitHub
commit 9a57bc4f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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);
} }