fix(cli): app start before sync and upgrade
This commit is contained in:
parent
9928424f5a
commit
5603faacf3
@ -7,6 +7,7 @@ export default (app: Application) => {
|
||||
const [opts] = cliArgs;
|
||||
console.log('db sync...');
|
||||
const force = false;
|
||||
await app.start();
|
||||
await app.db.sync({
|
||||
force,
|
||||
alter: {
|
||||
|
@ -10,6 +10,7 @@ export default (app: Application) => {
|
||||
.action(async (...cliArgs) => {
|
||||
const [opts] = cliArgs;
|
||||
console.log('upgrading...');
|
||||
await app.start();
|
||||
await app.upgrade();
|
||||
await app.stop({
|
||||
cliArgs,
|
||||
|
Loading…
Reference in New Issue
Block a user