feat: add app serve
This commit is contained in:
@@ -5,6 +5,9 @@ import fs from 'fs';
|
||||
const envisionPath = path.join(os.homedir(), '.config', 'envision');
|
||||
const configPath = path.join(os.homedir(), '.config', 'envision', 'config.json');
|
||||
|
||||
export const pidFilePath = path.join(envisionPath, 'app.pid');
|
||||
export const dbPath = path.join(envisionPath, 'db.sqlite');
|
||||
|
||||
export const checkFileExists = (filePath: string) => {
|
||||
try {
|
||||
fs.accessSync(filePath, fs.constants.F_OK);
|
||||
|
||||
Reference in New Issue
Block a user