From 57179631b65073e8c92ba1ed6f7b105745b75c70 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 12 May 2026 23:09:35 +0530 Subject: [PATCH] chore: add warning about slow build --- scripts/setup_remote.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/setup_remote.sh b/scripts/setup_remote.sh index ced8a12b..a59cce64 100755 --- a/scripts/setup_remote.sh +++ b/scripts/setup_remote.sh @@ -414,9 +414,19 @@ echo " - .env" echo "" echo -e "${YELLOW}To start Dograh, run:${NC}" echo "" +# The script's own cd into dograh/ doesn't persist to the user's shell, so +# remind them to cd themselves — except when they're already there (build mode +# with REPO_SOURCE=existing, which writes into cwd). +if [[ "$DEPLOY_MODE" != "build" || "$REPO_SOURCE" != "existing" ]]; then + echo -e " ${BLUE}cd $(pwd)${NC}" +fi if [[ "$DEPLOY_MODE" == "build" ]]; then echo -e " ${BLUE}sudo docker compose --profile remote up -d --build${NC}" echo "" + echo -e "${YELLOW}The first build can take several minutes${NC}" + echo -e "${YELLOW}(downloading base images, installing dependencies).${NC}" + echo -e "${YELLOW}If you know how to speed this up, we would love a pull request.${NC}" + echo "" echo -e "${YELLOW}To rebuild after editing api/ or ui/ code:${NC}" echo "" echo -e " ${BLUE}sudo docker compose --profile remote build && sudo docker compose --profile remote up -d${NC}"