aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
authorUbuntu <ubuntu@ip-172-31-40-15.us-east-2.compute.internal>2019-02-03 19:46:58 +0000
committerUbuntu <ubuntu@ip-172-31-40-15.us-east-2.compute.internal>2019-02-03 19:46:58 +0000
commitcf0a680fd9dc07ac7b2d95d1cd2bbca5431d4ab6 (patch)
treeac627f95b7abdaae55f4d02fe686adcb019c887f /src/server.js
parent833e47cfea08c999392358c4e36216156401497e (diff)
Update
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server.js b/src/server.js
index 368a101..1de966c 100644
--- a/src/server.js
+++ b/src/server.js
@@ -19,8 +19,6 @@ var storage = multer.diskStorage({
})
var upload = multer({ storage: storage })
-const port = 80;
-
const server = express();
// server.use(bodyParser.json());
server.use(cookieParser())
@@ -31,7 +29,7 @@ server.use(function (req, res, next) {
next()
})
-function listen(){
+function listen(port){
server.listen(port, () => console.info(`Listening on port ${port}!`));
}