Forráskód Böngészése

chore: fix path for syncing server revisions dumps

Karol Sójko 2 éve
szülő
commit
25c98ef078
2 módosított fájl, 3 hozzáadás és 4 törlés
  1. 2 1
      Dockerfile
  2. 1 3
      docker/docker-entrypoint.sh

+ 2 - 1
Dockerfile

@@ -31,7 +31,8 @@ RUN mkdir -p \
   /opt/bundled/auth \
   /opt/bundled/auth \
   /opt/bundled/files \
   /opt/bundled/files \
   /opt/bundled/revisions \
   /opt/bundled/revisions \
-  /opt/bundled/api-gateway
+  /opt/bundled/api-gateway \
+  /opt/shared/uploads
 
 
 RUN yarn workspace @standardnotes/syncing-server bundle --no-compress --output-directory /opt/bundled/syncing-server
 RUN yarn workspace @standardnotes/syncing-server bundle --no-compress --output-directory /opt/bundled/syncing-server
 RUN yarn workspace @standardnotes/auth-server bundle --no-compress --output-directory /opt/bundled/auth
 RUN yarn workspace @standardnotes/auth-server bundle --no-compress --output-directory /opt/bundled/auth

+ 1 - 3
docker/docker-entrypoint.sh

@@ -233,9 +233,7 @@ export SYNCING_SERVER_NEW_RELIC_ENABLED=false
 export SYNCING_SERVER_NEW_RELIC_APP_NAME="Syncing Server JS"
 export SYNCING_SERVER_NEW_RELIC_APP_NAME="Syncing Server JS"
 export SYNCING_SERVER_NEW_RELIC_NO_CONFIG_FILE=true
 export SYNCING_SERVER_NEW_RELIC_NO_CONFIG_FILE=true
 
 
-if [ -z "$SYNCING_SERVER_FILE_UPLOAD_PATH" ]; then
-  export SYNCING_SERVER_FILE_UPLOAD_PATH="data/uploads"
-fi
+export SYNCING_SERVER_FILE_UPLOAD_PATH="/opt/shared/uploads"
 
 
 printenv | grep SYNCING_SERVER_ | sed 's/SYNCING_SERVER_//g' > /opt/bundled/syncing-server/packages/syncing-server/.env
 printenv | grep SYNCING_SERVER_ | sed 's/SYNCING_SERVER_//g' > /opt/bundled/syncing-server/packages/syncing-server/.env