fix: 修改部署部分代码

This commit is contained in:
2025-02-21 00:48:49 +08:00
parent 14572ce6fa
commit c61999e2a4
8 changed files with 148 additions and 6 deletions

View File

@@ -8,7 +8,10 @@ import { loadApps } from './load-apps.ts';
// export { aiApp };
export { app };
loadApps(app);
// if (import.meta.url === `file://${process.argv[1]}`) {
app.listen(config.port, () => {
console.log(`server is running at http://localhost:${config.port}`);
});
app.server.on(uploadMiddleware);
// }