Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse filesFiles changed (4)
- Dockerfile+2-2
- build_logs3.txtAdded
- patch_app.pyAdded+30
- server/src/app.ts+18
63 unmodified lines646566676869705 unmodified lines7677787980818263 unmodified linesENV NODE_ENV=production \HOME=/paperclip \HOST=0.0.0.0 \PORT=3100 \SERVE_UI=true \PAPERCLIP_HOME=/paperclip \PAPERCLIP_INSTANCE_ID=default \5 unmodified linesOPENCODE_ALLOW_ALL_MODELS=trueVOLUME ["/paperclip"]EXPOSE 3100ENTRYPOINT ["docker-entrypoint.sh"]CMD ["node", "--import", "./server/node_modules/tsx/dist/loader.mjs", "server/dist/index.js"]63 unmodified lines646566676869705 unmodified lines7677787980818263 unmodified linesENV NODE_ENV=production \HOME=/paperclip \HOST=0.0.0.0 \PORT=7860 \SERVE_UI=true \PAPERCLIP_HOME=/paperclip \PAPERCLIP_INSTANCE_ID=default \5 unmodified linesOPENCODE_ALLOW_ALL_MODELS=trueVOLUME ["/paperclip"]EXPOSE 7860ENTRYPOINT ["docker-entrypoint.sh"]CMD ["node", "--import", "./server/node_modules/tsx/dist/loader.mjs", "server/dist/index.js"]
123456789101112131415161718192021222324252627282930import re
with open("server/src/app.ts", "r") as f: content = f.read()
replacement = """ api.use(boardMutationGuard());
api.get("/api-docs", (req, res) => { res.json({ endpoints: [ { method: "GET", path: "/health", purpose: "Returns HTTP 200 when the app is ready and provides health information." }, { method: "GET", path: "/api-docs", purpose: "Documents all available API endpoints." } ] }); });
"""
content = content.replace(" api.use(boardMutationGuard());\n", replacement)
with open("server/src/app.ts", "w") as f: f.write(content)139 unmodified lines140141142143144145139 unmodified lines// Mount API routesconst api = Router();api.use(boardMutationGuard());api.use("/health",healthRoutes(db, {139 unmodified lines140141142143144145146147148149150151152153154155156157158159160161162163139 unmodified lines// Mount API routesconst api = Router();api.use(boardMutationGuard());api.get("/api-docs", (req, res) => {res.json({endpoints: [{method: "GET",path: "/health",purpose: "Returns HTTP 200 when the app is ready and provides health information."},{method: "GET",path: "/api-docs",purpose: "Documents all available API endpoints."}]});});api.use("/health",healthRoutes(db, {
Dockerfile+2-2
build_logs3.txtAdded
patch_app.pyAdded+30
server/src/app.ts+18