-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
57 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 1 addition & 8 deletions
9
...er-entrypoint.d/97-copy-to-public-path.sh → ...er-entrypoint.d/91-copy-to-public-path.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
...int.d/98-replace_env_var_place_holders.sh → ...int.d/92-replace_env_var_place_holders.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
...r/docker-entrypoint.d/99-update-config.sh → ...r/docker-entrypoint.d/93-update-config.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
docker/docker-entrypoint.d/94-move-monaco-editor-workers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# Copy the Vue files to the Vue publicPath | ||
|
||
set -e | ||
|
||
source $(dirname -- "$0")/envvar.sh; | ||
|
||
FILE=$(basename $0) | ||
|
||
BASE_NAME=monacoeditorwork | ||
|
||
SOURCE=$(echo ${SITE_DIR}/${PUBLIC_PATH_PLACEHOLDER}/${BASE_NAME} | tr -s /) | ||
DEST=$(echo ${SITE_DIR}/${BASE_NAME} | tr -s /) | ||
|
||
if [[ ! -d ${SOURCE} ]] | ||
then | ||
echo "$FILE: the source dir doesn't exist: $SOURCE" | ||
exit 0 | ||
fi | ||
|
||
if [[ $SOURCE == $DEST ]] | ||
then | ||
echo "$FILE: the source and destination are the same: $SOURCE" | ||
exit 0 | ||
fi | ||
|
||
command="rm -rf $DEST" | ||
echo + $command | ||
eval $command | ||
|
||
command="mv $SOURCE $DEST" | ||
echo + $command | ||
eval $command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/echo to be sourced | ||
# This file is source by other files in this directory. | ||
|
||
PUBLIC_PATH="${PUBLIC_PATH:-/}" | ||
API_HTTP="${API_HTTP:-http://localhost:8000}" | ||
API_NAME="${API_NAME:-localhost}" | ||
|
||
PUBLIC_PATH="${PUBLIC_PATH%/}/" # ensure trailing slash | ||
|
||
echo + "PUBLIC_PATH=${PUBLIC_PATH}" | ||
echo + "API_HTTP=${API_HTTP}" | ||
echo + "API_NAME=${API_NAME}" | ||
|
||
DIST_DIR="/app/dist" | ||
SITE_DIR_ROOT="/app/site" | ||
|
||
SITE_DIR=$(echo $SITE_DIR_ROOT/$PUBLIC_PATH | tr -s /) | ||
SITE_DIR=${SITE_DIR%/} # e.g., /app/site/vue | ||
|
||
PUBLIC_PATH_PLACEHOLDER="/public_path_placeholder/" |
This file was deleted.
Oops, something went wrong.