clone: copy services config

This commit is contained in:
Girish Ramakrishnan
2021-03-30 12:34:07 -07:00
parent f211de1ff4
commit 726c028360
3 changed files with 9 additions and 6 deletions

View File

@@ -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) {