fix: make collectstatic non-blocking
Deploy to Dev / deploy-dev (push) Failing after 24s
Details
Deploy to Dev / deploy-dev (push) Failing after 24s
Details
This commit is contained in:
parent
e2dbbf52f3
commit
84668ca1e1
|
|
@ -32,8 +32,7 @@ jobs:
|
||||||
docker compose exec -T web python manage.py migrate || true
|
docker compose exec -T web python manage.py migrate || true
|
||||||
|
|
||||||
echo "📁 Collecting static files (if needed)..."
|
echo "📁 Collecting static files (if needed)..."
|
||||||
docker compose exec -T web sh -c "chmod -R 777 /app/staticfiles 2>/dev/null || mkdir -p /app/staticfiles && chmod -R 777 /app/staticfiles" || true
|
docker compose exec -T web python manage.py collectstatic --noinput --clear || echo "⚠️ collectstatic failed, but continuing..."
|
||||||
docker compose exec -T web python manage.py collectstatic --noinput || true
|
|
||||||
|
|
||||||
echo "✅ Dev deployment completed successfully"
|
echo "✅ Dev deployment completed successfully"
|
||||||
echo "ℹ️ You can continue working directly on the server"
|
echo "ℹ️ You can continue working directly on the server"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue