fix: bootstrap stable default profile instances
This commit is contained in:
@@ -64,6 +64,6 @@ const profiles = (process.env.BOOTSTRAP_PROFILES || 'gateway,che,kwe,pwe,twe,nya
|
||||
for (const profile of profiles) {
|
||||
const apiPort = profilePorts.get(profile);
|
||||
if (!apiPort) throw new Error(`No reserved API port is defined for profile: ${profile}`);
|
||||
await post('admin.profiles.upsert', { profile, scenario: 'default', apiPort, status: 'STOPPED' }, sessionToken);
|
||||
await post('admin.profiles.upsert', { profile, instanceKey: 'default', apiPort, status: 'STOPPED' }, sessionToken);
|
||||
}
|
||||
console.log(`Registered ${profiles.length} stopped profiles for branch-selectable Admin deployments.`);
|
||||
console.log(`Registered ${profiles.length} stopped default instances for branch-selectable Admin deployments.`);
|
||||
|
||||
Reference in New Issue
Block a user