Skip to content

Commit

Permalink
Moving extension folder within config folder for docker. #743
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Nov 24, 2023
1 parent fc75be1 commit 4fe7f31
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 262 deletions.
1 change: 1 addition & 0 deletions docker/alpine/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt
PI_DOCKER=true

Expand Down
1 change: 1 addition & 0 deletions docker/debian-bullseye/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt
PI_DOCKER=true

Expand Down
1 change: 1 addition & 0 deletions docker/debian-buster/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt
PI_DOCKER=true

Expand Down
1 change: 1 addition & 0 deletions docker/debian-buster/selfcontained/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ENV NODE_ENV=production \
default-Database-dbFolder=/app/data/db \
default-Media-folder=/app/data/images \
default-Media-tempFolder=/app/data/tmp \
default-Extensions-folder=/app/data/config/extensions \
# flagging dockerized environemnt
PI_DOCKER=true

Expand Down
2 changes: 1 addition & 1 deletion src/backend/ProjectPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ProjectPathClass {
this.TranscodedFolder = path.join(this.TempFolder, 'tc');
this.FacesFolder = path.join(this.TempFolder, 'f');
this.DBFolder = this.getAbsolutePath(Config.Database.dbFolder);
this.ExtensionFolder = path.join(this.Root, 'extensions');
this.ExtensionFolder = this.getAbsolutePath(Config.Extensions.folder);

// create thumbnail folder if not exist
if (!fs.existsSync(this.TempFolder)) {
Expand Down
Loading

0 comments on commit 4fe7f31

Please sign in to comment.