refactor: split marketplace into homepage and storefront apps
Build & Deploy / Build & Push Docker Image (push) Failing after 44s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m0s
Test / Marketplace Unit Tests (push) Failing after 4m51s
Test / Admin Unit Tests (push) Successful in 9m31s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
Build & Deploy / Build & Push Docker Image (push) Failing after 44s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m0s
Test / Marketplace Unit Tests (push) Failing after 4m51s
Test / Admin Unit Tests (push) Successful in 9m31s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
- Remove apps/marketplace entirely - Create apps/homepage (port 3000): landing/marketing pages (home, features, pricing, platform-ops, review, legal) - Create apps/storefront (port 3004): vehicle browsing (explore) and renter account (dashboard, profile, notifications) - Duplicate shared components/libs into each app - Update homepage header nav: Home, Features, Pricing instead of Home, Explore - Fix all /explore cross-references in homepage to point to /features - Update docker-compose.dev.yml: new homepage and storefront services, remove marketplace - Update docker-compose.production.yml: split into homepage (main domain) and storefront (path-based routes) - Update Dockerfiles: EXPOSE 3004 instead of 3003 - Update root package.json scripts: homepage/storefront profiles, tests, prod scripts - Add docker-prod-up-homepage.sh and docker-prod-up-storefront.sh, remove marketplace script
This commit is contained in:
+35
-6
@@ -91,7 +91,7 @@ services:
|
||||
- .:/app
|
||||
- app_node_modules:/app/node_modules
|
||||
restart: unless-stopped
|
||||
profiles: ["api", "marketplace", "dashboard", "admin", "full"]
|
||||
profiles: ["api", "homepage", "storefront", "dashboard", "admin", "full"]
|
||||
|
||||
api:
|
||||
build:
|
||||
@@ -122,7 +122,7 @@ services:
|
||||
restart: unless-stopped
|
||||
profiles: ["api", "full"]
|
||||
|
||||
marketplace:
|
||||
homepage:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
@@ -139,16 +139,44 @@ services:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"npm run build --workspace @rentaldrivego/types && cd /app/apps/marketplace && mkdir -p .next && find .next -mindepth 1 -exec rm -rf {} + && exec env PATH=/app/docker/scripts:$PATH /app/node_modules/.bin/next dev -H 0.0.0.0 -p 3000",
|
||||
"npm run build --workspace @rentaldrivego/types && cd /app/apps/homepage && mkdir -p .next && find .next -mindepth 1 -exec rm -rf {} + && exec env PATH=/app/docker/scripts:$PATH /app/node_modules/.bin/next dev -H 0.0.0.0 -p 3000",
|
||||
]
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- .:/app
|
||||
- app_node_modules:/app/node_modules
|
||||
- marketplace_next:/app/apps/marketplace/.next
|
||||
- homepage_next:/app/apps/homepage/.next
|
||||
restart: unless-stopped
|
||||
profiles: ["marketplace", "full"]
|
||||
profiles: ["homepage", "full"]
|
||||
|
||||
storefront:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.dev
|
||||
depends_on:
|
||||
- api
|
||||
- types
|
||||
env_file:
|
||||
- .env.docker.dev
|
||||
environment:
|
||||
CHOKIDAR_USEPOLLING: "true"
|
||||
CHOKIDAR_INTERVAL: "1000"
|
||||
WATCHPACK_POLLING: "true"
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"npm run build --workspace @rentaldrivego/types && cd /app/apps/storefront && mkdir -p .next && find .next -mindepth 1 -exec rm -rf {} + && exec env PATH=/app/docker/scripts:$PATH /app/node_modules/.bin/next dev -H 0.0.0.0 -p 3004",
|
||||
]
|
||||
ports:
|
||||
- "3004:3004"
|
||||
volumes:
|
||||
- .:/app
|
||||
- app_node_modules:/app/node_modules
|
||||
- storefront_next:/app/apps/storefront/.next
|
||||
restart: unless-stopped
|
||||
profiles: ["storefront", "full"]
|
||||
|
||||
dashboard:
|
||||
build:
|
||||
@@ -215,6 +243,7 @@ volumes:
|
||||
app_node_modules:
|
||||
postgres_bootstrap_state:
|
||||
api_uploads_dev:
|
||||
marketplace_next:
|
||||
homepage_next:
|
||||
storefront_next:
|
||||
dashboard_next:
|
||||
admin_next:
|
||||
|
||||
Reference in New Issue
Block a user