fix packeg for dev and prod

This commit is contained in:
root
2026-05-11 17:18:27 -04:00
committed by Administrator
parent 0e1b6f0338
commit 193aeae834
10 changed files with 35 additions and 13 deletions
+9 -9
View File
@@ -164,7 +164,7 @@ docker compose -f traefik.yaml up -d
#### 6. Build and start the app stack
```bash
docker compose -f docker-compose.production.yml up --build -d
npm run docker:prod:up
```
Docker will:
@@ -180,41 +180,41 @@ Pull the latest code and rebuild only the changed service:
```bash
git pull
docker compose -f docker-compose.production.yml up --build -d --no-deps <service>
docker compose -p rentaldrivego-prod --env-file .env.docker.production -f docker-compose.production.yml up --build -d --no-deps <service>
# e.g. to redeploy only the API:
docker compose -f docker-compose.production.yml up --build -d --no-deps api
docker compose -p rentaldrivego-prod --env-file .env.docker.production -f docker-compose.production.yml up --build -d --no-deps api
```
To rebuild everything:
```bash
docker compose -f docker-compose.production.yml up --build -d
npm run docker:prod:up
```
#### Apply database migrations without downtime
```bash
docker compose -f docker-compose.production.yml run --rm migrate
docker compose -p rentaldrivego-prod --env-file .env.docker.production -f docker-compose.production.yml run --rm api npm run db:deploy
```
#### View logs
```bash
# All services
docker compose -f docker-compose.production.yml logs -f
npm run docker:prod:logs
# Single service
docker compose -f docker-compose.production.yml logs -f api
npm run docker:prod:logs:api
```
#### Stop the stack
```bash
# Stop containers but keep volumes (data is preserved)
docker compose -f docker-compose.production.yml down
npm run docker:prod:down
# Stop and delete all data (destructive — irreversible)
docker compose -f docker-compose.production.yml down -v
docker compose -p rentaldrivego-prod --env-file .env.docker.production -f docker-compose.production.yml down -v
```
#### pgManage (DB admin UI)