Przeglądaj źródła

Check if current env is production and, if true, set port to 80 (#39)

pull/40/head
djordje.djoric 3 lat temu
rodzic
commit
93d5d91a3d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/server.js

+ 1
- 1
src/server.js Wyświetl plik

@@ -1,7 +1,7 @@
const express = require('express')
const app = express()
const path = require('path')
const port = process.env.PORT || 3000
const port = process.env.NODE_ENV === 'production' ? 80 : 3000
require('./database/mongoose')
const userRouter = require('./routes/user')
const tokenRouter = require('./routes/token')

Ładowanie…
Anuluj
Zapisz