chore: rename server to api (#7342)

This commit is contained in:
sriram veeraghanta 2025-07-04 15:32:21 +05:30 committed by GitHub
parent 6bee97eb26
commit fdbe4c2ca6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
554 changed files with 39 additions and 43 deletions

View file

@ -44,7 +44,7 @@ export LC_CTYPE=C
echo -e "${YELLOW}Setting up environment files...${NC}"
# Copy all environment example files
services=("" "web" "server" "space" "admin" "live")
services=("" "web" "api" "space" "admin" "live")
success=true
for service in "${services[@]}"; do
@ -60,7 +60,7 @@ for service in "${services[@]}"; do
done
# Generate SECRET_KEY for Django
if [ -f "./apps/server/.env" ]; then
if [ -f "./apps/api/.env" ]; then
echo -e "\n${YELLOW}Generating Django SECRET_KEY...${NC}"
SECRET_KEY=$(tr -dc 'a-z0-9' < /dev/urandom | head -c50)
@ -69,11 +69,11 @@ if [ -f "./apps/server/.env" ]; then
echo -e "${RED}Ensure 'tr' and 'head' commands are available on your system.${NC}"
success=false
else
echo -e "SECRET_KEY=\"$SECRET_KEY\"" >> ./apps/server/.env
echo -e "${GREEN}${NC} Added SECRET_KEY to apps/server/.env"
echo -e "SECRET_KEY=\"$SECRET_KEY\"" >> ./apps/api/.env
echo -e "${GREEN}${NC} Added SECRET_KEY to apps/api/.env"
fi
else
echo -e "${RED}${NC} apps/server/.env not found. SECRET_KEY not added."
echo -e "${RED}${NC} apps/api/.env not found. SECRET_KEY not added."
success=false
fi