Skip to content
Snippets Groups Projects
Commit d2f54e8c authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

[FIX] Remove spaces from env PORT and INSTANCE_IP

parent 607f6b8a
No related branches found
No related tags found
No related merge requests found
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
Meteor.startup(function() { Meteor.startup(function() {
const instance = { const instance = {
host: 'localhost', host: 'localhost',
port: process.env.PORT port: String(process.env.PORT).trim()
}; };
if (process.env.INSTANCE_IP) { if (process.env.INSTANCE_IP) {
instance.host = process.env.INSTANCE_IP; instance.host = String(process.env.INSTANCE_IP).trim();
} }
InstanceStatus.registerInstance('rocket.chat', instance); InstanceStatus.registerInstance('rocket.chat', instance);
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
import {DDPCommon} from 'meteor/ddp-common'; import {DDPCommon} from 'meteor/ddp-common';
process.env.PORT = String(process.env.PORT).trim();
process.env.INSTANCE_IP = String(process.env.INSTANCE_IP).trim();
const connections = {}; const connections = {};
this.connections = connections; this.connections = connections;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment