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 JWT_SECRET_KEY=8f87ca8c3c9c3df09a9c78e0adb0927855568f6072d9efc892534aee35f5867b
|
||||
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
|
||||
|
||||
|
||||
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
|
||||
# Online component environment variables
|
||||
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 JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
|
||||
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
|
||||
fi
|
||||
|
||||
# Setting environment variables for frontend compilation
|
||||
export VITE_API_URL='http://127.0.0.1:8002'
|
||||
export VITE_WEBSOCKET_URL='http://127.0.0.1:8002'
|
||||
if [[ "$USE_LOCAL_COMPONENT_VAL" == "true" ]]; then
|
||||
export VITE_PROXY_WEBSOCKET_CHAT_URL='ws://localhost:8012'
|
||||
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
|
||||
cat << 'EOFFRONTEND' > /home/devbox/freeleaps/frontend/freeleaps/.env.development
|
||||
export VITE_PROXY_WEBSOCKET_CHAT_URL=wss://freeleaps-alpha.com
|
||||
export VITE_PROXY_API_CHAT_URL=https://freeleaps-alpha.com
|
||||
EOFFRONTEND
|
||||
fi
|
||||
|
||||
if true ; then
|
||||
# Load the environment variables
|
||||
@ -773,6 +777,7 @@ if true ; then
|
||||
#####################################
|
||||
|
||||
pushd /home/devbox/freeleaps/frontend > /dev/null
|
||||
source /home/devbox/freeleaps/apps/.env
|
||||
|
||||
npm update
|
||||
|
||||
@ -899,6 +904,7 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
||||
echo "[BACKEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting backend compilation and startup..."
|
||||
|
||||
pushd /home/devbox/freeleaps/apps > /dev/null
|
||||
|
||||
|
||||
# Record the git status baseline before compilation
|
||||
baseline_backend=\$(mktemp)
|
||||
@ -1167,7 +1173,8 @@ docker exec -i "$DEVBOX_NAME" bash <<EOF
|
||||
echo "[FRONTEND] \$(date '+%Y-%m-%d %H:%M:%S') Starting frontend compilation and startup..."
|
||||
|
||||
pushd /home/devbox/freeleaps/frontend > /dev/null
|
||||
|
||||
source /home/devbox/freeleaps/apps/.env
|
||||
|
||||
# Record the git status baseline before compilation
|
||||
baseline_frontend=\$(mktemp)
|
||||
git config --global --add safe.directory /home/devbox/freeleaps
|
||||
|
||||
Loading…
Reference in New Issue
Block a user