refactor: rename marketplace to storefront across the entire monorepo
Build & Deploy / Build & Push Docker Image (push) Successful in 1m2s
Test / Type Check (all packages) (push) Failing after 28s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Storefront Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
Build & Deploy / Deploy to VPS (push) Successful in 3s
Build & Deploy / Build & Push Docker Image (push) Successful in 1m2s
Test / Type Check (all packages) (push) Failing after 28s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Storefront Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
Build & Deploy / Deploy to VPS (push) Successful in 3s
Comprehensive rename of all marketplace references to storefront: - API module: apps/api/src/modules/marketplace/ → storefront/ - Components: MarketplaceHeader → StorefrontHeader, MarketplaceShell → StorefrontShell, MarketplaceFooter → StorefrontFooter - Types: marketplace-homepage.ts → storefront-homepage.ts - Test files: employee-marketplace-* → employee-storefront-* - All source code identifiers, imports, route paths, and strings - Documentation (docs/), CI config (.gitlab-ci.yml), scripts - Dashboard, admin, storefront workspace references - Prisma field names preserved (isListedOnMarketplace, marketplaceRating, marketplaceFunnelEvent) as they map to database schema Validation: - API type-check: 0 errors - Storefront type-check: 0 errors - Dashboard type-check: 0 errors - Full monorepo type-check: only pre-existing admin TS18046
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, marketplace, admin, pgmanage, redis, traefik)
|
||||
1. Stops all app services (api, dashboard, storefront, 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
|
||||
|
||||
@@ -137,7 +137,7 @@ start_prod_services() {
|
||||
|
||||
for service in "${services[@]}"; do
|
||||
case "${service}" in
|
||||
api|marketplace|dashboard|admin)
|
||||
api|storefront|dashboard|admin)
|
||||
needs_migrations=1
|
||||
break
|
||||
;;
|
||||
@@ -181,7 +181,7 @@ login_registry_if_configured() {
|
||||
|
||||
pull_prod_release_images() {
|
||||
require_release_image
|
||||
prod_compose pull migrate api marketplace dashboard admin
|
||||
prod_compose pull migrate api storefront dashboard admin
|
||||
}
|
||||
|
||||
run_prod_migrations() {
|
||||
|
||||
@@ -25,9 +25,9 @@ echo "Running database migrations"
|
||||
run_prod_migrations
|
||||
|
||||
echo "Starting application services"
|
||||
prod_compose up -d api marketplace dashboard admin
|
||||
prod_compose up -d api storefront dashboard admin
|
||||
wait_for_healthy api 180
|
||||
wait_for_healthy marketplace 180
|
||||
wait_for_healthy storefront 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 marketplace dashboard admin pgmanage >/dev/null || true
|
||||
prod_compose stop api storefront 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 marketplace dashboard admin)
|
||||
app_services=(api storefront 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 marketplace 180
|
||||
wait_for_healthy storefront 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 marketplace dashboard admin
|
||||
start_prod_services postgres redis api storefront dashboard admin
|
||||
wait_for_healthy api
|
||||
wait_for_healthy marketplace
|
||||
wait_for_healthy storefront
|
||||
wait_for_healthy dashboard
|
||||
wait_for_healthy admin
|
||||
|
||||
echo "Production stack is up and healthy: traefik, postgres, redis, api, marketplace, dashboard, admin"
|
||||
echo "Production stack is up and healthy: traefik, postgres, redis, api, storefront, dashboard, admin"
|
||||
|
||||
Reference in New Issue
Block a user