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;
|
const [opts] = cliArgs;
|
||||||
console.log('db sync...');
|
console.log('db sync...');
|
||||||
const force = false;
|
const force = false;
|
||||||
|
await app.start();
|
||||||
await app.db.sync({
|
await app.db.sync({
|
||||||
force,
|
force,
|
||||||
alter: {
|
alter: {
|
||||||
|
@ -10,6 +10,7 @@ export default (app: Application) => {
|
|||||||
.action(async (...cliArgs) => {
|
.action(async (...cliArgs) => {
|
||||||
const [opts] = cliArgs;
|
const [opts] = cliArgs;
|
||||||
console.log('upgrading...');
|
console.log('upgrading...');
|
||||||
|
await app.start();
|
||||||
await app.upgrade();
|
await app.upgrade();
|
||||||
await app.stop({
|
await app.stop({
|
||||||
cliArgs,
|
cliArgs,
|
||||||
|
Loading…
Reference in New Issue
Block a user