fix budibase apps dir
This commit is contained in:
parent
5aa75ac9a2
commit
fb2e873e2f
|
@ -16,6 +16,3 @@ PORT=4001
|
||||||
|
|
||||||
# error level for koa-pino
|
# error level for koa-pino
|
||||||
LOG_LEVEL=error
|
LOG_LEVEL=error
|
||||||
|
|
||||||
# Budibase app directory
|
|
||||||
BUDIBASE_DIR=~/.budibase
|
|
|
@ -6,6 +6,7 @@ const env = require("../../environment")
|
||||||
const instanceController = require("./instance")
|
const instanceController = require("./instance")
|
||||||
const { resolve, join } = require("path")
|
const { resolve, join } = require("path")
|
||||||
const { copy, exists, readFile, writeFile } = require("fs-extra")
|
const { copy, exists, readFile, writeFile } = require("fs-extra")
|
||||||
|
const { budibaseAppsDir } = require("../../utilities/budibaseDir")
|
||||||
const { exec } = require("child_process")
|
const { exec } = require("child_process")
|
||||||
const sqrl = require("squirrelly")
|
const sqrl = require("squirrelly")
|
||||||
|
|
||||||
|
@ -73,7 +74,7 @@ const createEmptyAppPackage = async (ctx, app) => {
|
||||||
"appDirectoryTemplate"
|
"appDirectoryTemplate"
|
||||||
)
|
)
|
||||||
|
|
||||||
const appsFolder = env.BUDIBASE_DIR
|
const appsFolder = budibaseAppsDir()
|
||||||
const newAppFolder = resolve(appsFolder, app._id)
|
const newAppFolder = resolve(appsFolder, app._id)
|
||||||
|
|
||||||
if (await exists(newAppFolder)) {
|
if (await exists(newAppFolder)) {
|
||||||
|
|
Loading…
Reference in New Issue