c21916559f
Build & Deploy / Build & Push Docker Image (push) Successful in 3m9s
Test / Type Check (all packages) (push) Successful in 56s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Failing after 49s
Test / Homepage Unit Tests (push) Successful in 42s
Test / Storefront Unit Tests (push) Failing after 40s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Failing after 41s
Test / API Integration Tests (push) Successful in 1m0s
46 lines
3.1 KiB
Plaintext
46 lines
3.1 KiB
Plaintext
Deploy dev
|
|
|
|
Option A — Docker (recommended, full stack)
|
|
|
|
# First time or after dependency changes:
|
|
docker compose -f docker-compose.dev.yml build
|
|
|
|
# Start everything (api + all frontend apps + postgres + redis):
|
|
docker compose -f docker-compose.dev.yml --profile full up
|
|
|
|
# Or start only what you need (mix and match profiles):
|
|
docker compose -f docker-compose.dev.yml --profile api up # api only
|
|
docker compose -f docker-compose.dev.yml --profile api --profile dashboard up
|
|
|
|
First run seeds the database automatically; subsequent runs skip seeding.
|
|
|
|
Option B — Local (no Docker for apps)
|
|
|
|
# Start infra only:
|
|
docker compose -f docker-compose.dev.yml up postgres redis
|
|
|
|
# Then in a separate terminal:
|
|
npm run dev # starts all apps via turbo
|
|
|
|
Port map (after port reassignment)
|
|
|
|
┌─────────────┬───────────────────────────────────────────────┐
|
|
│ App │ URL │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ public-site │ http://localhost:3000 │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ carplace │ http://localhost:3004/carplace │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ dashboard │ http://localhost:3002/dashboard │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ admin │ http://localhost:3003/admin │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ api │ http://localhost:4000 │
|
|
├─────────────┼───────────────────────────────────────────────┤
|
|
│ pgAdmin │ http://localhost:5050 (needs --profile tools) │
|
|
└─────────────┴───────────────────────────────────────────────┘
|
|
|
|
▎ Note: In Docker dev each app is directly accessible on its own port. The /carplace, /dashboard, /admin proxy
|
|
▎ through port 3000 (public-site) only works when running locally (not in separate containers), since localhost inside
|
|
▎ a container refers to that container only.
|