mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2025-03-17 13:22:54 +01:00
create config if it's not there
This commit is contained in:
parent
a9814fd150
commit
529f68360d
@ -1,8 +1,12 @@
|
||||
const { execSync, spawn } = require('child_process');
|
||||
const fs = require('fs');
|
||||
|
||||
try {
|
||||
console.log(`Running migrations`);
|
||||
execSync(`mkdir config`);
|
||||
// check if config folder exists
|
||||
if (!fs.existsSync('./config')) {
|
||||
execSync(`mkdir config`);
|
||||
}
|
||||
execSync('npm run prisma:migrate');
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user