env
This commit is contained in:
parent
abc693de3f
commit
276f886c02
|
@ -1 +1,7 @@
|
||||||
DATABASE_URL=postgres://user:psw@localhost:5432/postgres
|
DATABASE_URL=postgres://user:psw@localhost:5432/postgres
|
||||||
|
SESSIONSECRET=Your Secret
|
||||||
|
MAILHOST=
|
||||||
|
MAILUSER=
|
||||||
|
MAILFROM=
|
||||||
|
MAILPASS=
|
||||||
|
PORT=2000
|
||||||
|
|
2
app.js
2
app.js
|
@ -9,7 +9,7 @@ const moment=require('moment')
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 2001;
|
const port = process.env.PORT;
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
app.use(express.static(path.join(__dirname, 'public')));
|
app.use(express.static(path.join(__dirname, 'public')));
|
||||||
|
|
Loading…
Reference in New Issue