clone: copy services config
This commit is contained in:
@@ -1685,9 +1685,9 @@ function clone(app, data, user, auditSource, callback) {
|
||||
validateLocations(locations, function (error, domainObjectMap) {
|
||||
if (error) return callback(error);
|
||||
|
||||
var newAppId = uuid.v4();
|
||||
const newAppId = uuid.v4();
|
||||
|
||||
var data = {
|
||||
const data = {
|
||||
installationState: exports.ISTATE_PENDING_CLONE,
|
||||
runState: exports.RSTATE_RUNNING,
|
||||
memoryLimit: app.memoryLimit,
|
||||
@@ -1699,7 +1699,8 @@ function clone(app, data, user, auditSource, callback) {
|
||||
reverseProxyConfig: app.reverseProxyConfig,
|
||||
env: app.env,
|
||||
alternateDomains: [],
|
||||
aliasDomains: []
|
||||
aliasDomains: [],
|
||||
servicesConfig: app.servicesConfig
|
||||
};
|
||||
|
||||
appdb.add(newAppId, appStoreId, manifest, location, domain, translatePortBindings(portBindings, manifest), data, function (error) {
|
||||
|
||||
Reference in New Issue
Block a user