From 7fde0b3d40030c5d722d922e8c34f665f32fb770 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sun, 5 Aug 2018 19:08:57 +0300 Subject: [PATCH] use os.tmp path --- server/src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/config.ts b/server/src/config.ts index 4f4ab34..2b75778 100644 --- a/server/src/config.ts +++ b/server/src/config.ts @@ -1,5 +1,6 @@ import * as path from 'path'; import * as fs from 'fs'; +import * as os from 'os'; import { getJsonDataSync } from './services/json_service'; @@ -17,7 +18,7 @@ export const FILES_DATABASE_PATH = path.join(DATA_PATH, 'files.db'); export const HASTIC_PORT = getConfigField('HASTIC_PORT', '8000'); export const ZMQ_CONNECTION_STRING = getConfigField('ZMQ_CONNECTION_STRING', null); -export const ZMQ_IPC_PATH = getConfigField('ZMQ_IPC_PATH', path.join('/tmp', 'hastic')); +export const ZMQ_IPC_PATH = getConfigField('ZMQ_IPC_PATH', path.join(os.tmpdir(), 'hastic')); export const ZMQ_DEV_PORT = getConfigField('ZMQ_DEV_PORT', '8002'); export const ANLYTICS_PING_INTERVAL = 500; // ms