send port bindings in configure
This commit is contained in:
parent
8b7eeafcd7
commit
0eee944fb2
@ -182,8 +182,10 @@ Cloudron.prototype.installApp = function (location, manifest, portBindings) {
|
||||
return appId;
|
||||
};
|
||||
|
||||
Cloudron.prototype.configureApp = function (appId, newLocation, altDomain /* optional */) {
|
||||
var data = { location: newLocation, accessRestriction: null, oauthProxy: false, password: this._credentials.password };
|
||||
Cloudron.prototype.configureApp = function (appId, newLocation, altDomain /* optional */, portBindings) {
|
||||
portBindings = portBindings || null;
|
||||
|
||||
var data = { location: newLocation, accessRestriction: null, oauthProxy: false, password: this._credentials.password, portBindings: portBindings };
|
||||
|
||||
if (altDomain) data.altDomain = altDomain;
|
||||
|
||||
|
@ -93,7 +93,7 @@ describe('Application flow test', function () {
|
||||
|
||||
it('can configure app', function () {
|
||||
location = location + 'x';
|
||||
cloudron.configureApp(appId, location);
|
||||
cloudron.configureApp(appId, location, null /* altDomain */, { ECHO_SERVER_PORT: 5151 });
|
||||
});
|
||||
|
||||
it('can check the addons', function () {
|
||||
|
Loading…
Reference in New Issue
Block a user