Skip to content

Commit 45fb68f

Browse files
authored
create internal public-start command (#49)
* create internal public-start command * lint
1 parent 49a347b commit 45fb68f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "webpack serve",
99
"prod-start": "node server.js",
1010
"build-start": "npm run prepare && npm run prod-start",
11+
"public-start": "npm run prepare && node server.js 80",
1112
"lint": "standard",
1213
"fix": "standard --fix",
1314
"test": "npm run lint && mocha"

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ app.all('*', function (req, res, next) {
7373
})
7474

7575
// Start the server
76-
const server = app.listen(8080, function () {
76+
const server = app.listen(process.argv[2] === undefined ? 8080 : process.argv[2], function () {
7777
console.log('Server listening on port ' + server.address().port)
7878
})

0 commit comments

Comments
 (0)