rename location to subdomain

the primary subdomain was previously called 'location'. but the alias/secondary/redirect
subdomain is called 'subdomain'. this makes it all consistent.

location terminology is now used for { subdomain, domain } pair
This commit is contained in:
Girish Ramakrishnan
2022-01-16 12:32:12 -08:00
parent 1e2f01cc69
commit e8d08968a1
11 changed files with 122 additions and 122 deletions

View File

@@ -96,7 +96,7 @@ const app = {
appStoreId: 'appStoreId',
installationState: apps.ISTATE_PENDING_INSTALL,
runState: 'running',
location: 'applocation',
subdomain: 'applocation',
domain: domain.domain,
fqdn: domain.domain + '.' + 'applocation',
manifest,
@@ -181,7 +181,7 @@ function setup(done) {
const result = await users.createOwner(admin.email, admin.username, admin.password, admin.displayName, auditSource);
admin.id = result;
},
apps.add.bind(null, app.id, app.appStoreId, app.manifest, app.location, app.domain, app.portBindings, app),
apps.add.bind(null, app.id, app.appStoreId, app.manifest, app.subdomain, app.domain, app.portBindings, app),
settings._set.bind(null, settings.CLOUDRON_TOKEN_KEY, exports.appstoreToken), // appstore token
async function createUser() {
const result = await users.add(user.email, user, auditSource);