- Added optional DEV_APP_URL and DEV_ALLOWED_ORIGINS to docker-compose.dev-env.yml for improved local development flexibility. - Updated .env.example to reflect new environment variables for development. - Modified backend main.py to support rate limiting on authentication routes and improved CORS handling. - Enhanced deploy-dev.yml to include health checks for the frontend service, ensuring better monitoring during development.
24 lines
831 B
YAML
24 lines
831 B
YAML
name: Deploy Development
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to Development
|
|
run: |
|
|
set -e
|
|
echo "=== Deploying Shinkan to DEVELOPMENT ==="
|
|
cd /home/lars/docker/shinkan-dev
|
|
git fetch origin develop || git clone http://192.168.2.144:3000/Lars/shinkan-jinkendo.git .
|
|
git reset --hard origin/develop
|
|
docker compose -f docker-compose.dev-env.yml build --no-cache
|
|
docker compose -f docker-compose.dev-env.yml up -d
|
|
sleep 5
|
|
curl -sf http://localhost:8098/api/version && echo "✓ DEV API healthy"
|
|
curl -sf http://localhost:3098/api/version && echo "✓ DEV über Frontend-Nginx (wie Browser) healthy"
|
|
echo "=== Shinkan DEV Deploy complete ==="
|