Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Composer/plugins/localPublish/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ class LocalPublisher {
if (!settings.runtime || settings.runtime.customRuntime !== true) {
this.composer.log('Updating bot assets');
await this.restoreBot(botId, version);
} else {
// if a port (e.g. --port 5000) is configured in the custom runtime command try to parse and set this port
if (settings.runtime.command && settings.runtime.command.includes('--port')) {
try {
port = /--port (\d+)/.exec(settings.runtime.command)[1];
} catch (err) {
console.warn(`Custom runtime command has an invalid port argument.`);
}
}
}

// start the bot process
Expand Down