Browse Source
Merge pull request #319 from Budibase/fix-budibase-dir
fix budibase apps dir
gh-pages
Martin McKeaveney
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
5 deletions
-
packages/server/.env.template
-
packages/server/src/api/controllers/application.js
|
|
|
@ -15,7 +15,4 @@ JWT_SECRET={{cookieKey1}} |
|
|
|
PORT=4001 |
|
|
|
|
|
|
|
# error level for koa-pino |
|
|
|
LOG_LEVEL=error |
|
|
|
|
|
|
|
# Budibase app directory |
|
|
|
BUDIBASE_DIR=~/.budibase |
|
|
|
LOG_LEVEL=error |
|
|
|
@ -6,6 +6,7 @@ const env = require("../../environment") |
|
|
|
const instanceController = require("./instance") |
|
|
|
const { resolve, join } = require("path") |
|
|
|
const { copy, exists, readFile, writeFile } = require("fs-extra") |
|
|
|
const { budibaseAppsDir } = require("../../utilities/budibaseDir") |
|
|
|
const { exec } = require("child_process") |
|
|
|
const sqrl = require("squirrelly") |
|
|
|
|
|
|
|
@ -73,7 +74,7 @@ const createEmptyAppPackage = async (ctx, app) => { |
|
|
|
"appDirectoryTemplate" |
|
|
|
) |
|
|
|
|
|
|
|
const appsFolder = env.BUDIBASE_DIR |
|
|
|
const appsFolder = budibaseAppsDir() |
|
|
|
const newAppFolder = resolve(appsFolder, app._id) |
|
|
|
|
|
|
|
if (await exists(newAppFolder)) { |
|
|
|
|