settings: move service setting into services.js
this also introduces getJson/setJson
This commit is contained in:
@@ -18,7 +18,6 @@ const apps = require('./apps.js'),
|
||||
path = require('path'),
|
||||
paths = require('./paths.js'),
|
||||
safe = require('safetydance'),
|
||||
settings = require('./settings.js'),
|
||||
services = require('./services.js'),
|
||||
shell = require('./shell.js'),
|
||||
system = require('./system.js'),
|
||||
@@ -52,7 +51,7 @@ async function start(existingInfra) {
|
||||
|
||||
debug('start: re-creating container');
|
||||
|
||||
const servicesConfig = await settings.getServicesConfig();
|
||||
const servicesConfig = await services.getConfig();
|
||||
const serviceConfig = servicesConfig['sftp'] || {};
|
||||
const tag = infra.images.sftp.tag;
|
||||
const memoryLimit = serviceConfig.memoryLimit || exports.DEFAULT_MEMORY_LIMIT;
|
||||
|
||||
Reference in New Issue
Block a user