Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
volto upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Nov 8, 2022
1 parent dd97911 commit 75b3e1b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ if [ -z "$INTERNAL_API_PATH" ]; then
INTERNAL_API_PATH="http://backend:8080/Plone"
fi

function apply_rebuild {
mkdir -p /opt/frontend/src/addons
find /opt/frontend/ -not -user node -exec chown node {} \+
RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn develop
RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn
RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn build
find /opt/frontend/ -not -user node -exec chown node {} \+
}
# function apply_rebuild {
# mkdir -p /opt/frontend/src/addons
# find /opt/frontend/ -not -user node -exec chown node {} \+
# RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn develop
# RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn
# RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH gosu node yarn build
# find /opt/frontend/ -not -user node -exec chown node {} \+
# }

function apply_path {
mainjs=./build/server.js
Expand All @@ -37,7 +37,7 @@ function apply_path {
}

# Should we re-build
test -n "$REBUILD" && apply_rebuild
# test -n "$REBUILD" && apply_rebuild

# Should we monkey patch?
test -n "$API_PATH" && apply_path
Expand Down

0 comments on commit 75b3e1b

Please sign in to comment.