mirror of https://github.com/Budibase/budibase.git
Browse Source
Fix email link from internal bb onboarding. Prevent account holder from being deletedpull/4023/head
committed by
GitHub
11 changed files with 53 additions and 19 deletions
@ -0,0 +1,22 @@ |
|||
#!/usr/bin/env node
|
|||
const updateDotEnv = require("update-dotenv") |
|||
|
|||
const arg = process.argv.slice(2)[0] |
|||
|
|||
/** |
|||
* For testing multi tenancy sub domains locally. |
|||
* |
|||
* Relies on an entry in /etc/hosts e.g: |
|||
* |
|||
* 127.0.0.1 local.com |
|||
* |
|||
* and an entry for each tenant you wish to test locally e.g: |
|||
* |
|||
* 127.0.0.1 t1.local.com |
|||
* 127.0.0.1 t2.local.com |
|||
*/ |
|||
updateDotEnv({ |
|||
ACCOUNT_PORTAL_URL: |
|||
arg === "enable" ? "http://local.com:10001" : "http://localhost:10001", |
|||
COOKIE_DOMAIN: arg === "enable" ? ".local.com" : "", |
|||
}).then(() => console.log("Updated worker!")) |
|||
Loading…
Reference in new issue