mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2026-05-03 07:00:11 +00:00
add uncommitted stuff
This commit is contained in:
parent
6aece8a46c
commit
9ffeb2311f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
**/*.js
|
src/*.js
|
||||||
dist
|
dist
|
||||||
**/*.d.ts
|
**/*.d.ts
|
||||||
**/*.d.ts.map
|
**/*.d.ts.map
|
||||||
|
|||||||
18
scripts/start.js
Normal file
18
scripts/start.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
const { execSync, spawn } = require('child_process');
|
||||||
|
|
||||||
|
try {
|
||||||
|
console.log(`Running migrations`);
|
||||||
|
execSync('npm run prisma:migrate');
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
// Handle any potential migration errors here
|
||||||
|
}
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
const childProcess = spawn('node', ['./dist/index.js', ...args], {
|
||||||
|
stdio: 'inherit',
|
||||||
|
});
|
||||||
|
|
||||||
|
childProcess.on('exit', (code) => {
|
||||||
|
process.exit(code);
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user