chore: wire Carplace into dev and production stacks
Build & Deploy / Build & Push Docker Image (push) Successful in 2m55s
Test / Type Check (all packages) (push) Successful in 54s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Failing after 48s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Storefront Unit Tests (push) Failing after 40s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Failing after 42s
Test / API Integration Tests (push) Successful in 1m0s
Build & Deploy / Build & Push Docker Image (push) Successful in 2m55s
Test / Type Check (all packages) (push) Successful in 54s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Failing after 48s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Storefront Unit Tests (push) Failing after 40s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Failing after 42s
Test / API Integration Tests (push) Successful in 1m0s
This commit is contained in:
@@ -49,7 +49,7 @@ The `--yes` flag is required. Without it, the script exits with instructions.
|
||||
|
||||
### What the restore does (in order)
|
||||
|
||||
1. Stops all app services (api, dashboard, storefront, admin, pgmanage, redis, traefik)
|
||||
1. Stops all app services (api, dashboard, carplace, admin, pgmanage, redis, traefik)
|
||||
2. Starts PostgreSQL
|
||||
3. Restores the database with `pg_restore --clean --if-exists`
|
||||
4. Restores uploaded files into the api_uploads volume
|
||||
|
||||
@@ -267,7 +267,7 @@ start_prod_services() {
|
||||
|
||||
for service in "${services[@]}"; do
|
||||
case "${service}" in
|
||||
api|storefront|dashboard|admin)
|
||||
api|carplace|dashboard|admin)
|
||||
needs_migrations=1
|
||||
break
|
||||
;;
|
||||
@@ -351,7 +351,7 @@ pull_prod_release_images() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
prod_compose pull migrate api storefront dashboard admin
|
||||
prod_compose pull migrate api carplace dashboard admin
|
||||
}
|
||||
|
||||
load_release_image_archives() {
|
||||
|
||||
@@ -26,9 +26,9 @@ echo "Running database migrations"
|
||||
run_prod_migrations
|
||||
|
||||
echo "Starting application services"
|
||||
prod_compose up -d api storefront dashboard admin
|
||||
prod_compose up -d api carplace dashboard admin
|
||||
wait_for_healthy api 180
|
||||
wait_for_healthy storefront 180
|
||||
wait_for_healthy carplace 180
|
||||
wait_for_healthy dashboard 180
|
||||
wait_for_healthy admin 180
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ SKIP_RAW_RESTORE_VOLUMES=(
|
||||
)
|
||||
|
||||
echo "Stopping application services before restore..."
|
||||
prod_compose stop api storefront dashboard admin pgmanage >/dev/null || true
|
||||
prod_compose stop api carplace dashboard admin pgmanage >/dev/null || true
|
||||
prod_compose stop redis >/dev/null || true
|
||||
stop_traefik
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ echo "Applying migrations"
|
||||
prod_compose run --rm migrate
|
||||
|
||||
echo "Starting application services"
|
||||
app_services=(api storefront dashboard admin)
|
||||
app_services=(api carplace dashboard admin)
|
||||
|
||||
if [[ "${INCLUDE_PGMANAGE}" == "1" ]]; then
|
||||
prod_compose --profile private-tools up -d "${app_services[@]}" pgmanage
|
||||
@@ -98,7 +98,7 @@ else
|
||||
prod_compose up -d "${app_services[@]}"
|
||||
fi
|
||||
wait_for_healthy api 180
|
||||
wait_for_healthy storefront 180
|
||||
wait_for_healthy carplace 180
|
||||
wait_for_healthy dashboard 180
|
||||
wait_for_healthy admin 180
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${ROOT_DIR}/scripts/docker-prod-common.sh"
|
||||
|
||||
start_traefik
|
||||
start_prod_services postgres redis api storefront dashboard admin
|
||||
start_prod_services postgres redis api carplace dashboard admin
|
||||
wait_for_healthy api
|
||||
wait_for_healthy storefront
|
||||
wait_for_healthy carplace
|
||||
wait_for_healthy dashboard
|
||||
wait_for_healthy admin
|
||||
|
||||
echo "Production stack is up and healthy: traefik, postgres, redis, api, storefront, dashboard, admin"
|
||||
echo "Production stack is up and healthy: traefik, postgres, redis, api, carplace, dashboard, admin"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${ROOT_DIR}/scripts/docker-prod-common.sh"
|
||||
|
||||
start_prod_services carplace
|
||||
wait_for_healthy carplace
|
||||
|
||||
echo "Carplace is up and healthy."
|
||||
@@ -5,9 +5,9 @@ set -euo pipefail
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${ROOT_DIR}/scripts/docker-prod-common.sh"
|
||||
|
||||
start_prod_services homepage storefront dashboard admin
|
||||
start_prod_services homepage carplace dashboard admin
|
||||
wait_for_healthy homepage
|
||||
wait_for_healthy storefront
|
||||
wait_for_healthy carplace
|
||||
wait_for_healthy dashboard
|
||||
wait_for_healthy admin
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ set -euo pipefail
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${ROOT_DIR}/scripts/docker-prod-common.sh"
|
||||
|
||||
start_prod_services storefront
|
||||
wait_for_healthy storefront
|
||||
start_prod_services carplace
|
||||
wait_for_healthy carplace
|
||||
|
||||
echo "Storefront is up and healthy."
|
||||
echo "Carplace is up and healthy."
|
||||
|
||||
@@ -3,7 +3,7 @@ import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
|
||||
const root = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..');
|
||||
const apps = ['admin', 'dashboard', 'storefront'];
|
||||
const apps = ['admin', 'dashboard', 'carplace'];
|
||||
const errors = [];
|
||||
|
||||
async function walk(directory) {
|
||||
|
||||
Reference in New Issue
Block a user