forked from freeleaps/freeleaps-pub
Merged PR 55: Update for frontend/freeleaps/.env.development online service
Update for frontend/freeleaps/.env.development online service
This commit is contained in:
commit
ca80f893e5
@ -681,7 +681,15 @@ if [[ "$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
|||||||
export KAFKA_SERVER_URL=''
|
export KAFKA_SERVER_URL=''
|
||||||
export JWT_SECRET_KEY=8f87ca8c3c9c3df09a9c78e0adb0927855568f6072d9efc892534aee35f5867b
|
export JWT_SECRET_KEY=8f87ca8c3c9c3df09a9c78e0adb0927855568f6072d9efc892534aee35f5867b
|
||||||
export EMAIL_FROM=freeleaps@freeleaps.com
|
export EMAIL_FROM=freeleaps@freeleaps.com
|
||||||
|
export VITE_PROXY_WEBSOCKET_CHAT_URL=ws://localhost:8012
|
||||||
|
export VITE_PROXY_API_CHAT_URL=http://localhost:8012
|
||||||
EOFinner
|
EOFinner
|
||||||
|
|
||||||
|
|
||||||
|
cat << 'EOFFRONTEND' > /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||||
|
export VITE_PROXY_WEBSOCKET_CHAT_URL=ws://localhost:8012
|
||||||
|
export VITE_PROXY_API_CHAT_URL=http://localhost:8012
|
||||||
|
EOFFRONTEND
|
||||||
else
|
else
|
||||||
# Online component environment variables
|
# Online component environment variables
|
||||||
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') Use online component dev environment."
|
echo "[INIT] \$(date '+%Y-%m-%d %H:%M:%S') Use online component dev environment."
|
||||||
@ -708,19 +716,15 @@ else
|
|||||||
export EMAIL_FROM=freeleaps@freeleaps.com
|
export EMAIL_FROM=freeleaps@freeleaps.com
|
||||||
export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
|
export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
|
||||||
export REDIS_URL=redis://freeleaps2-redis:6379/0
|
export REDIS_URL=redis://freeleaps2-redis:6379/0
|
||||||
|
export VITE_PROXY_WEBSOCKET_CHAT_URL=wss://freeleaps-alpha.com
|
||||||
|
export VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com
|
||||||
EOFinner
|
EOFinner
|
||||||
fi
|
|
||||||
|
|
||||||
# Setting environment variables for frontend compilation
|
cat << 'EOFFRONTEND' > /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||||
export VITE_API_URL='http://127.0.0.1:8002'
|
export VITE_PROXY_WEBSOCKET_CHAT_URL=wss://freeleaps-alpha.com
|
||||||
export VITE_WEBSOCKET_URL='http://127.0.0.1:8002'
|
export VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com
|
||||||
if [[ "$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
EOFFRONTEND
|
||||||
export VITE_PROXY_WEBSOCKET_CHAT_URL='ws://localhost:8012'
|
fi
|
||||||
export VITE_PROXY_API_CHAT_URL='http://localhost:8012'
|
|
||||||
else
|
|
||||||
export VITE_PROXY_WEBSOCKET_CHAT_URL='wss://freeleaps-alpha.com'
|
|
||||||
export VITE_PROXY_API_CHAT_URL='https://freeleaps-alpha.com'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if true ; then
|
if true ; then
|
||||||
# Load the environment variables
|
# Load the environment variables
|
||||||
@ -773,6 +777,7 @@ if true ; then
|
|||||||
#####################################
|
#####################################
|
||||||
|
|
||||||
pushd /home/devbox/freeleaps/frontend > /dev/null
|
pushd /home/devbox/freeleaps/frontend > /dev/null
|
||||||
|
source /home/devbox/freeleaps/apps/.env
|
||||||
|
|
||||||
npm update
|
npm update
|
||||||
|
|
||||||
@ -900,6 +905,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
|
|
||||||
pushd /home/devbox/freeleaps/apps > /dev/null
|
pushd /home/devbox/freeleaps/apps > /dev/null
|
||||||
|
|
||||||
|
|
||||||
# Record the git status baseline before compilation
|
# Record the git status baseline before compilation
|
||||||
baseline_backend=\$(mktemp)
|
baseline_backend=\$(mktemp)
|
||||||
git config --global --add safe.directory /home/devbox/freeleaps
|
git config --global --add safe.directory /home/devbox/freeleaps
|
||||||
@ -1167,6 +1173,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
|||||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting frontend compilation and startup..."
|
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting frontend compilation and startup..."
|
||||||
|
|
||||||
pushd /home/devbox/freeleaps/frontend > /dev/null
|
pushd /home/devbox/freeleaps/frontend > /dev/null
|
||||||
|
source /home/devbox/freeleaps/apps/.env
|
||||||
|
|
||||||
# Record the git status baseline before compilation
|
# Record the git status baseline before compilation
|
||||||
baseline_frontend=\$(mktemp)
|
baseline_frontend=\$(mktemp)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user