Passed
Push — master ( 42eade...ee9be4 )
by Marcus
02:00
created

server.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
const app = require('./index');
2
3
// get env variable DBWEBB_PORT
4
var PORT;
5
6
if (typeof process.env.DBWEBB_PORT !== 'undefined') {
7
    PORT = process.env.DBWEBB_PORT;
8
} else {
9
    PORT = 1337; //use for production (after build)
10
    //PORT = 1339; // use for development (npm run start-dev)
11
}
12
13
// Start up server
14
15
app.listen(process.env.PORT || PORT, () => {
16
// app.listen(PORT, () => {
17
    console.log("Express is listening on port " + PORT);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
18
});
19