mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-30 16:27:21 +08:00
修改环境变量加载路径
This commit is contained in:
1 parent
075165f89d
commit
55ffd85d48
1 file changed
+2
-1
@@ -16,8 +16,9 @@ if (!process.env.QL_DIR) {
|
||||
|
||||
const lastVersionFile = `http://qn.whyour.cn/version.ts?v=${Date.now()}`;
|
||||
|
||||
const envFound = dotenv.config();
|
||||
const rootPath = process.env.QL_DIR as string;
|
||||
const envFound = dotenv.config({ path: path.join(rootPath, '.env') });
|
||||
|
||||
const dataPath = path.join(rootPath, 'data/');
|
||||
const samplePath = path.join(rootPath, 'sample/');
|
||||
const configPath = path.join(dataPath, 'config/');
|
||||
|
||||
Reference in new issue
Block a user