Browse Source

fix uncommited

pull/1/head
amper43 6 years ago
parent
commit
fb53633fed
  1. 7
      docker-compose.yml
  2. 2
      server/src/services/analytics_service.ts

7
docker-compose.yml

@ -9,6 +9,10 @@ services:
- data-volume:"8000:8000"
privileged: true
ipc: host
deploy:
restart_policy:
condition: on-failure
analytics:
build:
dockerfile: Dockerfile_analytics
@ -18,6 +22,9 @@ services:
- "8002:8002"
privileged: true
ipc: host
deploy:
restart_policy:
condition: on-failure
volumes:
data-volume:

2
server/src/services/analytics_service.ts

@ -165,7 +165,7 @@ export class AnalyticsService {
private async _onAnalyticsDown() {
console.log('Analytics is down');
if(process.env.NODE_ENV !== 'development') {
if(process.env.NODE_ENV !== 'development' && process.env.INSIDE_DOCKER !== 'true') {
await AnalyticsService._runAnalyticsProcess(this._zmqConnectionString);
}
}

Loading…
Cancel
Save