{DEBUG} Production env
This commit is contained in:
parent
1bf353c150
commit
a6e0fbed53
3 changed files with 9 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -132,3 +132,4 @@ dist
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
uploads
|
uploads
|
||||||
|
db
|
||||||
|
|
|
@ -30,8 +30,13 @@ services:
|
||||||
- images-upload
|
- images-upload
|
||||||
images-upload-db:
|
images-upload-db:
|
||||||
container_name: images-upload-db
|
container_name: images-upload-db
|
||||||
image: mongo:latest
|
image: nertworkweb/mongodb-no-avx
|
||||||
|
# image: mongo:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./db:/data/db
|
||||||
|
ports:
|
||||||
|
- 2667:27017
|
||||||
networks:
|
networks:
|
||||||
- images-upload
|
- images-upload
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ class Uploads extends Pages {
|
||||||
|
|
||||||
await resizeImage(
|
await resizeImage(
|
||||||
req.file.path,
|
req.file.path,
|
||||||
path.join(
|
join(
|
||||||
this.userUploadDir,
|
this.userUploadDir,
|
||||||
mediumFileName,
|
mediumFileName,
|
||||||
),
|
),
|
||||||
|
@ -108,7 +108,7 @@ class Uploads extends Pages {
|
||||||
);
|
);
|
||||||
await resizeImage(
|
await resizeImage(
|
||||||
req.file.path,
|
req.file.path,
|
||||||
path.join(
|
join(
|
||||||
this.userUploadDir,
|
this.userUploadDir,
|
||||||
smallFileName,
|
smallFileName,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue