create internal public-start command (#49)

* create internal public-start command

* lint
This commit is contained in:
AwesomestCode 2021-03-03 03:59:36 -05:00 committed by GitHub
parent 49a347b9fa
commit 45fb68fe7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

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

View file

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