We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d254614 + 5e1f0fb commit 338e417Copy full SHA for 338e417
site/docker/site.Dockerfile
@@ -18,7 +18,8 @@ RUN bun install \
18
FROM oven/bun:1.2.3
19
20
ENV NODE_ENV=production
21
-ENV UPLOADS_PATH=production
+# TODO принимает ли эта переменная входящие данные при компоузе?
22
+ENV UPLOADS_PATH=/home/uploads
23
24
WORKDIR /app
25
site/repositories/src/repositories/resource.repository.ts
@@ -40,6 +40,8 @@ export class ResourceRepository {
40
const uploadsPath = getUploadsPath();
41
const fullPath = join(uploadsPath, relativePath);
42
43
+ console.log(fullPath)
44
+
45
if (!existsSync(fullPath)) throw new ResourceNotFoundException();
46
47
const stats = await stat(fullPath);
0 commit comments