fixing .env
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
const express = require('express');
|
const express = require('express');
|
||||||
const cors = require('cors');
|
const cors = require('cors');
|
||||||
const cookieParser = require('cookie-parser');
|
const cookieParser = require('cookie-parser');
|
||||||
|
|
||||||
|
const dotenv = require('dotenv');
|
||||||
|
const env = dotenv.config();
|
||||||
|
|
||||||
const bodyParser = require('body-parser');
|
const bodyParser = require('body-parser');
|
||||||
const logger = require('./app/logger');
|
const logger = require('./app/logger');
|
||||||
const port = process.env.PORT || 3000;
|
const port = process.env.PORT || 3000;
|
||||||
@@ -23,9 +27,9 @@ app.use(cookieParser());
|
|||||||
// parse application/vnd.api+json as json
|
// parse application/vnd.api+json as json
|
||||||
app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
|
app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
|
||||||
|
|
||||||
const socket = io.connect(process.env.SOCKET_URL);
|
//const socket = io.connect(process.env.SOCKET_URL);
|
||||||
//const socket = io.connect("http://10.0.0.32:5005");
|
const socket = io.connect("http://10.10.10.32:5005");
|
||||||
//
|
|
||||||
|
|
||||||
// respond with "hello world" when a GET request is made to the homepage
|
// respond with "hello world" when a GET request is made to the homepage
|
||||||
app.get('/broadcast/general', (req, res) => {
|
app.get('/broadcast/general', (req, res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user