create internal public-start command (#49)
* create internal public-start command * lint
This commit is contained in:
parent
49a347b9fa
commit
45fb68fe7b
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
"start": "webpack serve",
|
||||
"prod-start": "node server.js",
|
||||
"build-start": "npm run prepare && npm run prod-start",
|
||||
"public-start": "npm run prepare && node server.js 80",
|
||||
"lint": "standard",
|
||||
"fix": "standard --fix",
|
||||
"test": "npm run lint && mocha"
|
||||
|
|
|
@ -73,6 +73,6 @@ app.all('*', function (req, res, next) {
|
|||
})
|
||||
|
||||
// Start the server
|
||||
const server = app.listen(8080, function () {
|
||||
const server = app.listen(process.argv[2] === undefined ? 8080 : process.argv[2], function () {
|
||||
console.log('Server listening on port ' + server.address().port)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue