diff --git a/ops/deploy-backend.sh b/ops/deploy-backend.sh index eeace67..354e53a 100644 --- a/ops/deploy-backend.sh +++ b/ops/deploy-backend.sh @@ -16,6 +16,7 @@ compose=(docker compose -p backend -f "$BASE_COMPOSE" -f "$APP_DIR/ops/backend.c # Exercise the autoloader in the built image before touching the current container. docker run --rm --network none --entrypoint php "$PARSA_BACKEND_IMAGE" -r 'require "/var/www/html/vendor/autoload.php"; if (!class_exists("Illuminate\\Foundation\\Application")) { exit(1); }' "${compose[@]}" up -d --no-deps --no-build backend +docker exec parsa-backend php artisan db:seed --class="Database\\Seeders\\Blog\\RealBlogContentSeeder" --force || true for i in {1..30}; do code=$(curl --max-time 15 -s -o /dev/null -w '%{http_code}' -H 'Accept: application/json' https://backend.parsaaghayi.ir/api/website/about-me/1/translation/en || true) if [ "$code" = 200 ]; then