diff --git a/lib/Command/Daemon/RegisterDaemon.php b/lib/Command/Daemon/RegisterDaemon.php index 21e0d21b..5773a3cb 100644 --- a/lib/Command/Daemon/RegisterDaemon.php +++ b/lib/Command/Daemon/RegisterDaemon.php @@ -81,6 +81,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int return 1; } + if ($acceptsDeployId === 'manual-install' && !$isHarp && str_contains($host, ':')) { + $output->writeln('Warning: The host contains a port, which will be ignored for manual-install daemons. The ExApp\'s port from --json-info will be used instead.'); + } + if ($this->daemonConfigService->getDaemonConfigByName($name) !== null) { $output->writeln(sprintf('Registration skipped, as the daemon config `%s` already exists.', $name)); return 0; diff --git a/lib/DeployActions/ManualActions.php b/lib/DeployActions/ManualActions.php index 52a6471a..3bb193a1 100644 --- a/lib/DeployActions/ManualActions.php +++ b/lib/DeployActions/ManualActions.php @@ -66,6 +66,7 @@ public function resolveExAppUrl( $host = $deployConfig['additional_options']['OVERRIDE_APP_HOST']; } } + $host = explode(':', $host)[0]; return sprintf('%s://%s:%s', $protocol, $host, $port); } }