Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
M4labplatform
Commits
70ef680d
Commit
70ef680d
authored
Sep 11, 2020
by
Patrick
Browse files
Test Update
parent
83a8cbbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.js
View file @
70ef680d
...
...
@@ -20,14 +20,14 @@ const credentials = {
app
.
use
(
express
.
static
(
'
vcm
'
));
// Starting both http & https servers
const
httpServer
=
http
.
createServer
(
app
);
//
const httpServer = http.createServer(app);
const
httpsServer
=
https
.
createServer
(
credentials
,
app
);
httpServer
.
listen
(
8083
,
()
=>
{
console
.
log
(
'
HTTP Server running on port 80
'
);
});
//
httpServer.listen(8083, () => {
//
console.log('HTTP Server running on port 80');
//
});
httpsServer
.
listen
(
808
4
,
()
=>
{
httpsServer
.
listen
(
808
3
,
()
=>
{
console
.
log
(
'
HTTPS Server running on port 443
'
);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment