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:
@@ -53,8 +53,9 @@ module Public
|
||||
def live_match_card_heading(match, link_team: true)
|
||||
team = match.team
|
||||
club_name = team.club&.name.presence || "Società"
|
||||
team_label = if link_team && team.slug.present?
|
||||
link_to(team.name, public_team_page_path(team.slug), class: "live-card__team-link")
|
||||
team_slug = team.respond_to?(:slug) ? team.slug : nil
|
||||
team_label = if link_team && team_slug.present?
|
||||
link_to(team.name, public_team_page_path(team_slug), class: "live-card__team-link")
|
||||
else
|
||||
team.name
|
||||
end
|
||||
|
||||
@@ -20,8 +20,8 @@ android {
|
||||
applicationId = "com.matchlivetv.match_live_tv"
|
||||
minSdk = 24
|
||||
targetSdk = 36
|
||||
versionCode = 23
|
||||
versionName = "2.0.2-native"
|
||||
versionCode = 24
|
||||
versionName = "2.0.3-native"
|
||||
|
||||
val apiBaseUrl = project.findProperty("API_BASE_URL") as String?
|
||||
?: "https://www.matchlivetv.it"
|
||||
|
||||
@@ -62,12 +62,8 @@ cd "$INFRA"
|
||||
echo "==> Build immagini (senza fermare i servizi)"
|
||||
compose build rails sidekiq
|
||||
|
||||
echo "==> Migrazioni DB"
|
||||
if compose ps --status running rails 2>/dev/null | grep -q rails; then
|
||||
compose exec -T rails bundle exec rails db:migrate
|
||||
else
|
||||
compose run --rm --no-deps rails bundle exec rails db:prepare
|
||||
fi
|
||||
echo "==> Migrazioni DB (immagine appena buildata, non il container vecchio)"
|
||||
compose run --rm --no-deps rails bundle exec rails db:migrate
|
||||
|
||||
echo "==> Proxy edge + deploy Rails (sposta :3000 su edge)"
|
||||
compose up -d --no-deps --force-recreate edge
|
||||
|
||||
Reference in New Issue
Block a user