feat: Add Aspirant theme and preview deployment config
This commit is contained in:
parent
da32c67300
commit
b39cd90cf1
2 changed files with 16 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ JWT_SECRET=${JWT_SECRET}
|
|||
|
||||
# Environment
|
||||
NODE_ENV=production
|
||||
PORT=${PORT}
|
||||
EOF"
|
||||
echo -e "${GREEN}✓ Environment file created${NC}"
|
||||
echo -e "${YELLOW}IMPORTANT: New secrets generated on $HOST.${NC}"
|
||||
|
|
@ -143,7 +144,11 @@ ssh "$USER@$HOST" "
|
|||
docker compose build
|
||||
|
||||
echo ' Starting services...'
|
||||
docker compose up -d
|
||||
if [ "$ENV" = "preview" ]; then
|
||||
docker compose -f docker-compose.yml -f docker-compose.preview.yml up -d --build
|
||||
else
|
||||
docker compose up -d --build
|
||||
fi
|
||||
"
|
||||
echo -e "${GREEN}✓ Services deployed${NC}"
|
||||
echo ""
|
||||
|
|
|
|||
10
docker-compose.preview.yml
Normal file
10
docker-compose.preview.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
frontend:
|
||||
ports:
|
||||
- "${PORT}:80"
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
go2rtc:
|
||||
labels:
|
||||
- "traefik.enable=false"
|
||||
Loading…
Add table
Reference in a new issue