mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 00:36:07 +00:00
16 lines
248 B
JavaScript
Executable File
16 lines
248 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const keys = process.argv;
|
|
|
|
const key = keys.pop();
|
|
|
|
const dotenv = require('dotenv');
|
|
|
|
dotenv.config();
|
|
|
|
if (key === 'start') {
|
|
require('../lib/index');
|
|
} else if (key === 'db-init') {
|
|
require('../lib/migrations/init');
|
|
}
|