fis room data
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
WRENCHJOB_PORT=3000
|
MERMS_PORT=3000
|
||||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||||
|
# SOCKET_URL="10.10.10.13:5005"
|
||||||
SOCKET_PORT=5005
|
SOCKET_PORT=5005
|
||||||
TEST=111
|
TEST=111
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
WRENCHJOB_PORT=3000
|
MERMS_PORT=3000
|
||||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||||
|
# SOCKET_URL="10.10.10.13:5005"
|
||||||
SOCKET_PORT=5005
|
SOCKET_PORT=5005
|
||||||
TEST=111
|
TEST=111
|
||||||
|
|||||||
+4
-6
@@ -1,4 +1,4 @@
|
|||||||
version: '3'
|
# version: '3'
|
||||||
services:
|
services:
|
||||||
merms-event-manager:
|
merms-event-manager:
|
||||||
build:
|
build:
|
||||||
@@ -14,12 +14,10 @@ services:
|
|||||||
extra_hosts:
|
extra_hosts:
|
||||||
- api.mermsemr.com:10.10.33.15
|
- api.mermsemr.com:10.10.33.15
|
||||||
- devapi.mermsemr.com:10.10.33.15
|
- devapi.mermsemr.com:10.10.33.15
|
||||||
- dev-socket.mermsemr.com:10.10.33.15
|
- devsocket.mermsemr.com:10.10.33.15
|
||||||
- socket.mermsemr.com:10.10.33.15
|
- socket.mermsemr.com:10.10.33.15
|
||||||
- dev-media.mermsemr.com:10.10.33.15
|
|
||||||
- media.mermsemr.com:10.10.33.15
|
|
||||||
environment:
|
environment:
|
||||||
- PORT=${WRENCHJOB_PORT}
|
- PORT=${MERMS_PORT}
|
||||||
- POSTGRE_URL=${WRENCHJOB_POSTGRE_URL}
|
- POSTGRE_URL=${MERMS_POSTGRE_URL}
|
||||||
volumes:
|
volumes:
|
||||||
src:
|
src:
|
||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
WRENCHJOB_PORT=3000
|
MERMS_PORT=3000
|
||||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||||
|
# SOCKET_URL="10.10.10.13:5005"
|
||||||
SOCKET_PORT=5005
|
SOCKET_PORT=5005
|
||||||
TEST=111
|
TEST=111
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ 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.0.0.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
|
||||||
@@ -45,7 +45,10 @@ app.get('/broadcast/selected', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
app.get('/broadcast/provisioning', (req, res) => {
|
app.get('/broadcast/provisioning', (req, res) => {
|
||||||
const room = 'merms_provision_events';
|
logger.info('***** Server PROVSION STEPS MESSAGE ********* ');
|
||||||
|
logger.info( req.query.product_uid );
|
||||||
|
const room = req.query.product_uid;
|
||||||
|
//const room = 'merms_provision_events';
|
||||||
const message_action = 'refresh_provision_actions';
|
const message_action = 'refresh_provision_actions';
|
||||||
socket.emit("join_room", room);
|
socket.emit("join_room", room);
|
||||||
socket.emit("send_message", { message_action , room });
|
socket.emit("send_message", { message_action , room });
|
||||||
|
|||||||
Reference in New Issue
Block a user