Skip to content

Commit 338e417

Browse files
authored
Merge pull request #27 from kirill-ivanovvv/feat/github-actions
feat(github): deploy
2 parents d254614 + 5e1f0fb commit 338e417

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

site/docker/site.Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RUN bun install \
1818
FROM oven/bun:1.2.3
1919

2020
ENV NODE_ENV=production
21-
ENV UPLOADS_PATH=production
21+
# TODO принимает ли эта переменная входящие данные при компоузе?
22+
ENV UPLOADS_PATH=/home/uploads
2223

2324
WORKDIR /app
2425

site/repositories/src/repositories/resource.repository.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class ResourceRepository {
4040
const uploadsPath = getUploadsPath();
4141
const fullPath = join(uploadsPath, relativePath);
4242

43+
console.log(fullPath)
44+
4345
if (!existsSync(fullPath)) throw new ResourceNotFoundException();
4446

4547
const stats = await stat(fullPath);

0 commit comments

Comments
 (0)