Browse Source
Merge pull request #4565 from Budibase/update-nginx-dev
Add 'location = /' -> 4001 to nginx dev conf
master
Rory Powell
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
3 deletions
-
hosting/nginx.dev.conf.hbs
-
packages/backend-core/src/cloud/accounts.js
-
packages/backend-core/src/context/index.js
-
packages/builder/src/components/common/bindings/BindingPanel.svelte
|
|
|
@ -43,6 +43,10 @@ http { |
|
|
|
proxy_pass http://{{ address }}:4001; |
|
|
|
} |
|
|
|
|
|
|
|
location = / { |
|
|
|
proxy_pass http://{{ address }}:4001; |
|
|
|
} |
|
|
|
|
|
|
|
location /app_ { |
|
|
|
proxy_pass http://{{ address }}:4001; |
|
|
|
} |
|
|
|
|
|
|
|
@ -17,7 +17,7 @@ exports.getAccount = async email => { |
|
|
|
const json = await response.json() |
|
|
|
|
|
|
|
if (response.status !== 200) { |
|
|
|
throw Error(`Error getting account by email ${email}`, json) |
|
|
|
throw new Error(`Error getting account by email ${email}`, json) |
|
|
|
} |
|
|
|
|
|
|
|
return json[0] |
|
|
|
|
|
|
|
@ -121,7 +121,7 @@ exports.getTenantId = () => { |
|
|
|
} |
|
|
|
const tenantId = cls.getFromContext(ContextKeys.TENANT_ID) |
|
|
|
if (!tenantId) { |
|
|
|
throw Error("Tenant id not found") |
|
|
|
throw new Error("Tenant id not found") |
|
|
|
} |
|
|
|
return tenantId |
|
|
|
} |
|
|
|
|
|
|
|
@ -146,7 +146,7 @@ |
|
|
|
<div class="helper__description"> |
|
|
|
{@html helper.description} |
|
|
|
</div> |
|
|
|
<pre class="helper__example">{helper.example || ''}</pre> |
|
|
|
<pre class="helper__example">{helper.example || ""}</pre> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
{/each} |
|
|
|
|