|
|
|
@ -33,27 +33,29 @@ async function init() { |
|
|
|
fs.writeFileSync(envoyOutputPath, processStringSync(contents, config)) |
|
|
|
|
|
|
|
const envFilePath = path.join(process.cwd(), ".env") |
|
|
|
const envFileJson = { |
|
|
|
PORT: 4001, |
|
|
|
MINIO_URL: "http://localhost:10000/", |
|
|
|
COUCH_DB_URL: "http://budibase:budibase@localhost:10000/db/", |
|
|
|
REDIS_URL: "localhost:6379", |
|
|
|
WORKER_URL: "http://localhost:4002", |
|
|
|
INTERNAL_API_KEY: "budibase", |
|
|
|
JWT_SECRET: "testsecret", |
|
|
|
REDIS_PASSWORD: "budibase", |
|
|
|
MINIO_ACCESS_KEY: "budibase", |
|
|
|
MINIO_SECRET_KEY: "budibase", |
|
|
|
COUCH_DB_PASSWORD: "budibase", |
|
|
|
COUCH_DB_USER: "budibase", |
|
|
|
SELF_HOSTED: 1, |
|
|
|
MULTI_TENANCY: "", |
|
|
|
if (!fs.existsSync(envFilePath)) { |
|
|
|
const envFileJson = { |
|
|
|
PORT: 4001, |
|
|
|
MINIO_URL: "http://localhost:10000/", |
|
|
|
COUCH_DB_URL: "http://budibase:budibase@localhost:10000/db/", |
|
|
|
REDIS_URL: "localhost:6379", |
|
|
|
WORKER_URL: "http://localhost:4002", |
|
|
|
INTERNAL_API_KEY: "budibase", |
|
|
|
JWT_SECRET: "testsecret", |
|
|
|
REDIS_PASSWORD: "budibase", |
|
|
|
MINIO_ACCESS_KEY: "budibase", |
|
|
|
MINIO_SECRET_KEY: "budibase", |
|
|
|
COUCH_DB_PASSWORD: "budibase", |
|
|
|
COUCH_DB_USER: "budibase", |
|
|
|
SELF_HOSTED: 1, |
|
|
|
MULTI_TENANCY: "", |
|
|
|
} |
|
|
|
let envFile = "" |
|
|
|
Object.keys(envFileJson).forEach(key => { |
|
|
|
envFile += `${key}=${envFileJson[key]}\n` |
|
|
|
}) |
|
|
|
fs.writeFileSync(envFilePath, envFile) |
|
|
|
} |
|
|
|
let envFile = "" |
|
|
|
Object.keys(envFileJson).forEach(key => { |
|
|
|
envFile += `${key}=${envFileJson[key]}\n` |
|
|
|
}) |
|
|
|
fs.writeFileSync(envFilePath, envFile) |
|
|
|
} |
|
|
|
|
|
|
|
async function up() { |
|
|
|
|