Skip to content

Commit

Permalink
update listen msg
Browse files Browse the repository at this point in the history
  • Loading branch information
dany-fu committed Aug 21, 2020
1 parent 8d95a3b commit 03f0ebe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions demos/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ app.use(express.static(__dirname + '/static'));
// app.use(express.static(__dirname + '/static/js'));
app.use(express.static(__dirname + '/../lib/'));

const server = app.listen(8080, function () {
console.log('Listening on port %d', server.address().port);
console.log('http://localhost:80/');
const server = app.listen(8080, "http://constellationcad.org", function () {
let host = server.address().address;
let port = server.address().port;
console.log('Running at ' + host + ':' + port)
});

app.get('/', function(req,res) {
Expand Down

0 comments on commit 03f0ebe

Please sign in to comment.