cloudron 5.8.0 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/actions.js +10 -4
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -707,11 +707,16 @@ async function configure(localOptions, cmd) {
|
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
+
const ports = {};
|
|
711
|
+
for (const portName in app.portBindings) {
|
|
712
|
+
ports[portName] = app.portBindings[portName].hostPort;
|
|
713
|
+
}
|
|
714
|
+
|
|
710
715
|
const data = {
|
|
711
716
|
location: domainObject.subdomain, // LEGACY
|
|
712
717
|
subdomain: domainObject.subdomain,
|
|
713
718
|
domain: domainObject.domain,
|
|
714
|
-
ports
|
|
719
|
+
ports,
|
|
715
720
|
secondaryDomains,
|
|
716
721
|
aliasDomains
|
|
717
722
|
};
|
|
@@ -734,7 +739,7 @@ async function configure(localOptions, cmd) {
|
|
|
734
739
|
|
|
735
740
|
// port bindings
|
|
736
741
|
if (options.portBindings) {
|
|
737
|
-
let ports
|
|
742
|
+
let ports;
|
|
738
743
|
// ask the user for port values if the ports are different in the app and the manifest
|
|
739
744
|
if (typeof options.portBindings === 'string') {
|
|
740
745
|
ports = {};
|
|
@@ -751,7 +756,7 @@ async function configure(localOptions, cmd) {
|
|
|
751
756
|
console.log('%s: %s', port, ports[port]);
|
|
752
757
|
}
|
|
753
758
|
|
|
754
|
-
data.ports =
|
|
759
|
+
data.ports = ports;
|
|
755
760
|
}
|
|
756
761
|
|
|
757
762
|
const request = createRequest('POST', `/api/v1/apps/${app.id}/configure/location`, options);
|
|
@@ -819,7 +824,8 @@ async function update(localOptions, cmd) {
|
|
|
819
824
|
await waitForFinishInstallation(app.id, response.body.taskId, options);
|
|
820
825
|
console.log('\n\nApp is updated.');
|
|
821
826
|
} catch (error) {
|
|
822
|
-
|
|
827
|
+
console.log(error);
|
|
828
|
+
exit(`\n\nApp update error: ${error.message}`);
|
|
823
829
|
}
|
|
824
830
|
}
|
|
825
831
|
|