forked from syntaxbullet/aurorabot
refactor: rename web/ to api/ to better reflect its purpose
The web/ folder contains the REST API, WebSocket server, and OAuth routes — not a web frontend. Renaming to api/ clarifies this distinction since the actual web frontend lives in panel/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Copy only what's needed for production
|
# Copy only what's needed for production
|
||||||
COPY --from=builder --chown=bun:bun /app/node_modules ./node_modules
|
COPY --from=builder --chown=bun:bun /app/node_modules ./node_modules
|
||||||
COPY --from=builder --chown=bun:bun /app/web/src ./web/src
|
COPY --from=builder --chown=bun:bun /app/api/src ./api/src
|
||||||
COPY --from=builder --chown=bun:bun /app/bot ./bot
|
COPY --from=builder --chown=bun:bun /app/bot ./bot
|
||||||
COPY --from=builder --chown=bun:bun /app/shared ./shared
|
COPY --from=builder --chown=bun:bun /app/shared ./shared
|
||||||
COPY --from=builder --chown=bun:bun /app/panel/dist ./panel/dist
|
COPY --from=builder --chown=bun:bun /app/panel/dist ./panel/dist
|
||||||
|
|||||||
0
web/.gitignore → api/.gitignore
vendored
0
web/.gitignore → api/.gitignore
vendored
0
web/bun-env.d.ts → api/bun-env.d.ts
vendored
0
web/bun-env.d.ts → api/bun-env.d.ts
vendored
@@ -3,7 +3,7 @@ import { env } from "@shared/lib/env";
|
|||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { initializeConfig } from "@shared/lib/config";
|
import { initializeConfig } from "@shared/lib/config";
|
||||||
|
|
||||||
import { startWebServerFromRoot } from "../web/src/server";
|
import { startWebServerFromRoot } from "../api/src/server";
|
||||||
|
|
||||||
// Initialize config from database
|
// Initialize config from database
|
||||||
await initializeConfig();
|
await initializeConfig();
|
||||||
@@ -18,7 +18,7 @@ console.log("🌐 Starting web server...");
|
|||||||
|
|
||||||
let shuttingDown = false;
|
let shuttingDown = false;
|
||||||
|
|
||||||
const webProjectPath = join(import.meta.dir, "../web");
|
const webProjectPath = join(import.meta.dir, "../api");
|
||||||
const webPort = Number(process.env.WEB_PORT) || 3000;
|
const webPort = Number(process.env.WEB_PORT) || 3000;
|
||||||
const webHost = process.env.HOST || "0.0.0.0";
|
const webHost = process.env.HOST || "0.0.0.0";
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"web",
|
"api",
|
||||||
"dist",
|
"dist",
|
||||||
"drizzle"
|
"drizzle"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user