send port bindings in configure

This commit is contained in:
Girish Ramakrishnan 2016-05-05 16:53:39 -07:00
parent 8b7eeafcd7
commit 0eee944fb2
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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 () {