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
16d03cf0
Commit
16d03cf0
authored
Sep 11, 2020
by
Patrick
Browse files
test server
parent
f4f9e621
Changes
1
Show whitespace changes
Inline
Side-by-side
server.js
View file @
16d03cf0
const
http
=
require
(
'
http
'
);
const
http
=
require
(
'
https
'
);
const
fs
=
require
(
'
fs
'
);
const
express
=
require
(
'
express
'
)
const
app
=
express
();
...
...
@@ -31,9 +32,9 @@ app.use((req, res) => {
const
httpServer
=
http
.
createServer
(
app
);
const
httpsServer
=
https
.
createServer
(
credentials
,
app
);
//
httpServer.listen(80, () => {
//
console.log('HTTP Server running on port 80');
//
});
httpServer
.
listen
(
80
85
,
()
=>
{
console
.
log
(
'
HTTP Server running on port 80
'
);
});
httpsServer
.
listen
(
8083
,
()
=>
{
console
.
log
(
'
HTTPS Server running on port 8083
'
);
...
...
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