Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 1e18451

Browse files
committed
Use environment port
1 parent b24d2d5 commit 1e18451

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var express = require('express');
2-
var app = express();
1+
const express = require('express');
2+
const app = express();
33

44

55

6-
app.get('/', function (req, res) {
7-
res.send('Welcome to coderplex');
6+
app.get('/', (req, res) => {
7+
res.send('Backend in progress');
88
});
9-
app.listen(3000, function () {
10-
console.log('Example app listening on port 3000!');
9+
app.listen(process.env.PORT, function () {
10+
console.log(`Listening on ${process.env.PORT}`);
1111
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy