diff --git a/packages/server/src/app-supervisor.ts b/packages/server/src/app-supervisor.ts index 8da8eb3716..27921285d5 100644 --- a/packages/server/src/app-supervisor.ts +++ b/packages/server/src/app-supervisor.ts @@ -97,6 +97,7 @@ export class AppSupervisor extends EventEmitter implements AsyncEmitter { } setAppStatus(appName: string, status: AppStatus, options = {}) { + console.log('🚀 ~ AppSupervisor ~ setAppStatus ~ appName:', appName, status, options); if (this.appStatus[appName] === status) { return; } diff --git a/packages/server/src/application.ts b/packages/server/src/application.ts index 488651313e..108caabbff 100644 --- a/packages/server/src/application.ts +++ b/packages/server/src/application.ts @@ -827,11 +827,11 @@ export class Application exten this._started = true; - if (options.checkInstall && !(await this.isInstalled())) { - throw new ApplicationNotInstall( - `Application ${this.name} is not installed, Please run 'pnpm tachybase install' command first`, - ); - } + // if (options.checkInstall && !(await this.isInstalled())) { + // throw new ApplicationNotInstall( + // `Application ${this.name} is not installed, Please run 'pnpm tachybase install' command first`, + // ); + // } this.setMaintainingMessage('starting app...'); diff --git a/packages/server/src/commands/start.ts b/packages/server/src/commands/start.ts index 8d9905a555..a5e4e2384a 100644 --- a/packages/server/src/commands/start.ts +++ b/packages/server/src/commands/start.ts @@ -32,13 +32,13 @@ export default (app: Application) => { app.logger.info('app has been started'); return; } - if (!(await app.isInstalled())) { - app['_started'] = true; - throw new ApplicationNotInstall( - `Application ${app.name} is not installed, Please run 'pnpm tachybase install' command first`, - ); - } - await app.load(); + // if (!(await app.isInstalled())) { + // app['_started'] = true; + // throw new ApplicationNotInstall( + // `Application ${app.name} is not installed, Please run 'pnpm tachybase install' command first`, + // ); + // } + // await app.load(); await app.start({ dbSync: options?.dbSync, quickstart: options.quickstart, diff --git a/packages/server/src/gateway/index.ts b/packages/server/src/gateway/index.ts index ec9a96fedd..77a9704497 100644 --- a/packages/server/src/gateway/index.ts +++ b/packages/server/src/gateway/index.ts @@ -184,12 +184,6 @@ export class Gateway extends EventEmitter { const { pathname } = parse(req.url); const { PLUGIN_STATICS_PATH, APP_PUBLIC_PATH } = process.env; - if (pathname.endsWith('/__umi/api/bundle-status')) { - res.statusCode = 200; - res.end('ok'); - return; - } - if (pathname.startsWith(APP_PUBLIC_PATH + 'storage/uploads/')) { req.url = req.url.substring(APP_PUBLIC_PATH.length - 1); await compress(req, res); @@ -248,7 +242,6 @@ export class Gateway extends EventEmitter { if (appStatus === 'initialized') { const appInstance = await AppSupervisor.getInstance().getApp(handleApp); - appInstance.runCommand('start', '--quickstart'); appStatus = AppSupervisor.getInstance().getAppStatus(handleApp); }