From 97b8f742ddb8da5fb0239a1d564e9193f642645a Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 29 Jul 2021 12:35:41 +0200 Subject: [PATCH 1/2] :bug: Fix exporter bug on docker images. --- docker/images/files/nginx-entrypoint.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docker/images/files/nginx-entrypoint.sh b/docker/images/files/nginx-entrypoint.sh index cf292de0a..8e2c645f8 100644 --- a/docker/images/files/nginx-entrypoint.sh +++ b/docker/images/files/nginx-entrypoint.sh @@ -9,17 +9,6 @@ log() { ## App Frontend config ######################################### - -update_public_uri() { - if [ -n "$PENPOT_PUBLIC_URI" ]; then - log "Updating Public URI: $PENPOT_PUBLIC_URI" - sed -i \ - -e "s|^//var penpotPublicURI = \".*\";|var penpotPublicURI = \"$PENPOT_PUBLIC_URI\";|g" \ - "$1" - fi -} - - update_demo_warning() { if [ -n "$PENPOT_DEMO_WARNING" ]; then log "Updating Demo Warning: $PENPOT_DEMO_WARNING" @@ -113,7 +102,6 @@ update_flags() { fi } -update_public_uri /var/www/app/js/config.js update_demo_warning /var/www/app/js/config.js update_allow_demo_users /var/www/app/js/config.js update_google_client_id /var/www/app/js/config.js From 7a94a2f087efed6197b848f4c643cbbeafc76772 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 29 Jul 2021 14:36:03 +0200 Subject: [PATCH 2/2] :bug: Fix default storage config on docker images compose file. --- docker/images/config.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/images/config.env b/docker/images/config.env index 6d1f76bd2..157d2be43 100644 --- a/docker/images/config.env +++ b/docker/images/config.env @@ -13,8 +13,8 @@ PENPOT_REDIS_URI=redis://penpot-redis/0 # can be configured to store in AWS S3 or completely in de the database. # Storing in the database makes the backups more easy but will make access to # media less performant. -PENPOT_STORAGE_BACKEND=fs -PENPOT_STORAGE_FS_DIRECTORY=/opt/data/assets +ASSETS_STORAGE_BACKEND=assets-fs +PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/data/assets # Telemetry. When enabled, a periodical process will send anonymous data about # this instance. Telemetry data will enable us to learn on how the application