forked from freeleaps/freeleaps-pub
Update for init competed echo information
This commit is contained in:
parent
8084619fd7
commit
5f3b149e59
@ -851,15 +851,25 @@ echo "$USE_LOCAL_COMPONENT" > "$WORKING_HOME/.use-local-component"
|
||||
|
||||
pushd $WORKING_HOME
|
||||
|
||||
IS_START_FRONTEND=false
|
||||
|
||||
# Make a user input (Y/N) to continue pull freeleaps.com code and start if N then exit
|
||||
read -p "Do you want to continue to pull freeleaps.com code and start the services? (Y/N): " user_input
|
||||
if [[ "$user_input" == "N" || "$user_input" == "n" ]]; then
|
||||
# Echo as init job completed and exit
|
||||
echo "==> [INIT] DevBox environment initialization completed."
|
||||
echo
|
||||
echo "==========================================================="
|
||||
echo "DevBox init completed successfully!"
|
||||
echo "DevBox Environment Details:"
|
||||
echo " DevBox container name: $DEVBOX_NAME"
|
||||
echo " DevBox container ID: $WORKING_HOME/.devbox-instance"
|
||||
echo "==========================================================="
|
||||
echo
|
||||
exit 0
|
||||
fi
|
||||
|
||||
IS_START_FRONTEND=true
|
||||
|
||||
# Check if username and password are set
|
||||
if [[ -z "$FREELEAPS_USERNAME" || -z "$FREELEAPS_PASSWORD" ]]; then
|
||||
echo "Warining: Username and password are required to pull freeleaps.com code."
|
||||
@ -875,8 +885,6 @@ if ! git ls-remote "https://$FREELEAPS_USERNAME:$FREELEAPS_PASSWORD@freeleaps.co
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
FRONTEND_GIT_URL="https://$FREELEAPS_USERNAME:$FREELEAPS_PASSWORD@freeleaps.com:3443/products/freeleaps.git"
|
||||
# Check if freeleaps2-frontend exists, if not git clone it
|
||||
if [ ! -d $WORKING_HOME/freeleaps ]; then
|
||||
@ -1138,10 +1146,13 @@ EOF
|
||||
echo
|
||||
echo "==========================================================="
|
||||
echo "DevBox init completed successfully!"
|
||||
echo "DevBox Environment Details:"
|
||||
echo "1. Code repository is located at: ${WORKING_HOME}/freeleaps"
|
||||
echo "2. Open up the frontend by visiting: http://localhost:${DEVBOX_FRONTEND_PORT}"
|
||||
echo "3. Log files can be viewed at:"
|
||||
echo " - Backend logs: ${WORKING_HOME}/logs/backend.logs"
|
||||
echo " - Frontend logs: ${WORKING_HOME}/logs/frontend.logs"
|
||||
echo " DevBox container ID: $WORKING_HOME/.devbox-instance"
|
||||
echo " Repository cloned to: $WORKING_HOME/freeleaps"
|
||||
echo " Backend logs: $WORKING_HOME/logs/backend.logs"
|
||||
echo " Frontend logs: $WORKING_HOME/logs/frontend.logs"
|
||||
echo " Backend PID: $WORKING_HOME/.backend.pid"
|
||||
echo " Frontend PID: $WORKING_HOME/.frontend.pid"
|
||||
echo "==========================================================="
|
||||
|
||||
Loading…
Reference in New Issue
Block a user