Skip to content

Commit

Permalink
Fix deployment config options for new VUE_APP settings (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Sep 4, 2024
1 parent af5aa69 commit 9501932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker/app_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ARG VUE_APP_LOGO_URL=magic-logo-url
ARG VUE_APP_HOMEPAGE_URL=magic-homepage-url
ARG VUE_APP_EDITABLE_INVENTORY=magic-setting
ARG VUE_APP_WEBSITE_TITLE=magic-title
ARG VUE_APP_QR_CODE_RESOLVER_URL=magic-qr-code-resolver-url

COPY webapp ./
RUN /node_modules/.bin/vue-cli-service build
Expand Down
2 changes: 2 additions & 0 deletions .docker/app_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ echo " LOGO_URL: ${VUE_APP_LOGO_URL}"
echo " HOMEPAGE_URL: ${VUE_APP_HOMPAGE_URL}"
echo " EDITABLE_INVENTORY: ${VUE_APP_EDITABLE_INVENTORY}"
echo " WEBSITE_TITLE: ${VUE_APP_WEBSITE_TITLE}"
echo " QR_CODE_RESOLVER_URL: ${VUE_APP_QR_CODE_RESOLVER_URL}"
echo ""
echo "Patching..."

Expand All @@ -36,6 +37,7 @@ for file in $ROOT_DIR/js/app.*.js* $ROOT_DIR/*html; do
sed -i "s|magic-homepage-url|${VUE_APP_HOMEPAGE_URL}|g" $file
sed -i "s|magic-setting|${VUE_APP_EDITABLE_INVENTORY}|g" $file
sed -i "s|magic-title|${VUE_APP_WEBSITE_TITLE}|g" $file
sed -i "s|magic-qr-code-resolver-url|${VUE_APP_QR_CODE_RESOLVER_URL}|g" $file
done

echo "Done!"
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
- VUE_APP_LOGO_URL
- VUE_APP_HOMEPAGE_URL
- VUE_APP_EDITABLE_INVENTORY
- VUE_APP_WEBSITE_TITLE
- VUE_APP_QR_CODE_RESOLVER_URL
ports:
- "8081:8081"

Expand Down

0 comments on commit 9501932

Please sign in to comment.