修改一些目录结构
This commit is contained in:
11
check-config
Executable file
11
check-config
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/env node
|
||||
const path = require('path')
|
||||
const fs = require('fs')
|
||||
|
||||
if(!fs.existsSync(path.join(__dirname,'.env'))) {
|
||||
throw new Error('环境变量文件 [ .env ] 不存在')
|
||||
}
|
||||
|
||||
if(!fs.existsSync(path.join(__dirname,'ormconfig.json'))) {
|
||||
throw new Error('orm配置文件 [ ormconfig.json ] 不存在')
|
||||
}
|
Reference in New Issue
Block a user