forked from tsai/budibase
committed by
GitHub
11 changed files with 41 additions and 38 deletions
@ -1,10 +0,0 @@ |
|||||
const { join } = require("path") |
|
||||
const { homedir } = require("os") |
|
||||
|
|
||||
const path = join(homedir(), ".budibase", ".env") |
|
||||
require("dotenv").config({ path }) |
|
||||
const server = require("./app") |
|
||||
|
|
||||
server.on("listening", () => { |
|
||||
console.log(`Budibase Server listening on port ${process.env.PORT}`) |
|
||||
}) |
|
||||
@ -0,0 +1,10 @@ |
|||||
|
const { join } = require("path") |
||||
|
const { homedir, tmpdir } = require("os") |
||||
|
|
||||
|
module.exports.budibaseAppsDir = function() { |
||||
|
return process.env.BUDIBASE_DIR || join(homedir(), ".budibase") |
||||
|
} |
||||
|
|
||||
|
module.exports.budibaseTempDir = function() { |
||||
|
return join(tmpdir(), ".budibase") |
||||
|
} |
||||
Loading…
Reference in new issue