fis room data
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
WRENCHJOB_PORT=3000
|
||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
MERMS_PORT=3000
|
||||
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||
# SOCKET_URL="10.10.10.13:5005"
|
||||
SOCKET_PORT=5005
|
||||
TEST=111
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
WRENCHJOB_PORT=3000
|
||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
MERMS_PORT=3000
|
||||
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||
# SOCKET_URL="10.10.10.13:5005"
|
||||
SOCKET_PORT=5005
|
||||
TEST=111
|
||||
|
||||
+4
-6
@@ -1,4 +1,4 @@
|
||||
version: '3'
|
||||
# version: '3'
|
||||
services:
|
||||
merms-event-manager:
|
||||
build:
|
||||
@@ -14,12 +14,10 @@ services:
|
||||
extra_hosts:
|
||||
- api.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
|
||||
- dev-media.mermsemr.com:10.10.33.15
|
||||
- media.mermsemr.com:10.10.33.15
|
||||
environment:
|
||||
- PORT=${WRENCHJOB_PORT}
|
||||
- POSTGRE_URL=${WRENCHJOB_POSTGRE_URL}
|
||||
- PORT=${MERMS_PORT}
|
||||
- POSTGRE_URL=${MERMS_POSTGRE_URL}
|
||||
volumes:
|
||||
src:
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
WRENCHJOB_PORT=3000
|
||||
WRENCHJOB_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
MERMS_PORT=3000
|
||||
MERMS_POSTGRE_URL='postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel'
|
||||
WRENCHJOB_KAFKA_BROKER01='10.10.10.120:9092'
|
||||
SOCKET_URL='https://devsocket.mermsemr.com'
|
||||
# SOCKET_URL="10.10.10.13:5005"
|
||||
SOCKET_PORT=5005
|
||||
TEST=111
|
||||
|
||||
@@ -23,8 +23,8 @@ app.use(cookieParser());
|
||||
// parse application/vnd.api+json as json
|
||||
app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
|
||||
|
||||
// const socket = io.connect(process.env.SOCKET_URL);
|
||||
const socket = io.connect("http://10.0.0.32:5005");
|
||||
const socket = io.connect(process.env.SOCKET_URL);
|
||||
//const socket = io.connect("http://10.0.0.32:5005");
|
||||
//
|
||||
|
||||
// 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) => {
|
||||
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';
|
||||
socket.emit("join_room", room);
|
||||
socket.emit("send_message", { message_action , room });
|
||||
|
||||
Reference in New Issue
Block a user