nocobase/packages/api/bin/nocobase.js

16 lines
248 B
JavaScript
Raw Normal View History

2021-04-07 09:48:07 +00:00
#!/usr/bin/env node
2021-04-07 09:37:14 +00:00
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');
}