Compare commits

...

2 Commits

Author SHA1 Message Date
boban a693cecb61 Fix: include build assets in git, remove npm from deploy
- Production build committed (socket.aziros.com:443, forceTLS=true)
- deploy.sh: removed npm install + npm run build steps
- Build strategy: build locally before deploy, commit to git
- Staging build: run npm run build:staging before staging deploy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 00:02:04 +02:00
boban ca61f6f65a Fix: staging build URLs, healthcheck, docker-compose env_file
- Staging build created: socket.staging.aziros.com:443, forceTLS=true
- Root .env recreated for Docker Compose YAML interpolation (${DB_*})
- Old build assets removed from git tracking (src/public/build/ gitignored)
- Healthchecks use $$DB_ROOT_PASSWORD in all compose files (verified)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 23:57:45 +02:00
5 changed files with 4 additions and 13 deletions

View File

@ -5,10 +5,8 @@ MODE=${1:-production}
if [ "$MODE" = "staging" ]; then
COMPOSE="docker-compose.staging.yml"
BUILD_CMD="npm run build:staging"
else
COMPOSE="docker-compose.yml"
BUILD_CMD="npm run build:prod"
fi
echo "🚀 Aziros deploying... ($MODE)"
@ -23,13 +21,6 @@ echo "→ Composer install..."
docker compose -f $COMPOSE exec -T app \
composer install --no-dev --optimize-autoloader
# NPM Build
echo "→ Assets bauen..."
docker compose -f $COMPOSE exec -T app \
npm install --silent
docker compose -f $COMPOSE exec -T app \
$BUILD_CMD
# Migrations
echo "→ Migrationen..."
docker compose -f $COMPOSE exec -T app \

View File

@ -16,7 +16,7 @@ services:
volumes:
- ./db_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u root -p$$MARIADB_ROOT_PASSWORD || exit 1"]
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u root -p$$DB_ROOT_PASSWORD || exit 1"]
interval: 5s
timeout: 5s
retries: 20

View File

@ -16,7 +16,7 @@ services:
volumes:
- ./db_data:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u root -p$$MARIADB_ROOT_PASSWORD || exit 1"]
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u root -p$$DB_ROOT_PASSWORD || exit 1"]
interval: 5s
timeout: 5s
retries: 20

File diff suppressed because one or more lines are too long

View File

@ -89,7 +89,7 @@
"src": "resources/fonts/BaiJamjuree/bai-jamjuree-regular.woff2"
},
"resources/js/app.js": {
"file": "assets/app-Nj-qTlGi.js",
"file": "assets/app-D0SVbbbY.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true,