ci(deploy): run RealBlogContentSeeder automatically during deploy pipeline
Deploy Backend / deploy (push) Successful in 46s
Deploy Backend / deploy (push) Successful in 46s
This commit is contained in:
1 parent
39919e82a7
commit
27231a091e
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user