Fix deploy migrate su immagine nuova e bump Android 2.0.3.

Le migrate partono dall'immagine appena buildata invece che dal container vecchio; helper live tollera slug assente.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-23 23:31:17 +02:00
co-authored by Cursor
parent 1d97271555
commit fb7068f86c
3 changed files with 7 additions and 10 deletions
+3 -2
View File
@@ -53,8 +53,9 @@ module Public
def live_match_card_heading(match, link_team: true) def live_match_card_heading(match, link_team: true)
team = match.team team = match.team
club_name = team.club&.name.presence || "Società" club_name = team.club&.name.presence || "Società"
team_label = if link_team && team.slug.present? team_slug = team.respond_to?(:slug) ? team.slug : nil
link_to(team.name, public_team_page_path(team.slug), class: "live-card__team-link") team_label = if link_team && team_slug.present?
link_to(team.name, public_team_page_path(team_slug), class: "live-card__team-link")
else else
team.name team.name
end end
+2 -2
View File
@@ -20,8 +20,8 @@ android {
applicationId = "com.matchlivetv.match_live_tv" applicationId = "com.matchlivetv.match_live_tv"
minSdk = 24 minSdk = 24
targetSdk = 36 targetSdk = 36
versionCode = 23 versionCode = 24
versionName = "2.0.2-native" versionName = "2.0.3-native"
val apiBaseUrl = project.findProperty("API_BASE_URL") as String? val apiBaseUrl = project.findProperty("API_BASE_URL") as String?
?: "https://www.matchlivetv.it" ?: "https://www.matchlivetv.it"
+2 -6
View File
@@ -62,12 +62,8 @@ cd "$INFRA"
echo "==> Build immagini (senza fermare i servizi)" echo "==> Build immagini (senza fermare i servizi)"
compose build rails sidekiq compose build rails sidekiq
echo "==> Migrazioni DB" echo "==> Migrazioni DB (immagine appena buildata, non il container vecchio)"
if compose ps --status running rails 2>/dev/null | grep -q rails; then compose run --rm --no-deps rails bundle exec rails db:migrate
compose exec -T rails bundle exec rails db:migrate
else
compose run --rm --no-deps rails bundle exec rails db:prepare
fi
echo "==> Proxy edge + deploy Rails (sposta :3000 su edge)" echo "==> Proxy edge + deploy Rails (sposta :3000 su edge)"
compose up -d --no-deps --force-recreate edge compose up -d --no-deps --force-recreate edge