Fixes to service configuration
restart service does not rebuild automatically, we should add a route for that. we need to figure where to scale services etc if we randomly create containers like that.
This commit is contained in:
@@ -19,7 +19,6 @@ const apps = require('./apps.js'),
|
||||
reverseProxy = require('./reverseproxy.js'),
|
||||
safe = require('safetydance'),
|
||||
services = require('./services.js'),
|
||||
settings = require('./settings.js'),
|
||||
shell = require('./shell.js'),
|
||||
tasks = require('./tasks.js'),
|
||||
_ = require('underscore');
|
||||
@@ -76,7 +75,7 @@ function onPlatformReady(infraChanged) {
|
||||
exports._isReady = true;
|
||||
|
||||
let tasks = [ apps.schedulePendingTasks ];
|
||||
if (infraChanged) tasks.push(applyServicesConfig, pruneInfraImages);
|
||||
if (infraChanged) tasks.push(pruneInfraImages);
|
||||
|
||||
async.series(async.reflectAll(tasks), function (error, results) {
|
||||
results.forEach((result, idx) => {
|
||||
@@ -85,14 +84,6 @@ function onPlatformReady(infraChanged) {
|
||||
});
|
||||
}
|
||||
|
||||
function applyServicesConfig(callback) {
|
||||
settings.getServicesConfig(function (error, platformConfig) {
|
||||
if (error) return callback(error);
|
||||
|
||||
services.updateServiceConfig(platformConfig, callback);
|
||||
});
|
||||
}
|
||||
|
||||
function pruneInfraImages(callback) {
|
||||
debug('pruneInfraImages: checking existing images');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user