chore: rename server to api (#7342)
This commit is contained in:
parent
6bee97eb26
commit
fdbe4c2ca6
554 changed files with 39 additions and 43 deletions
10
setup.sh
10
setup.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue