refactor: rename Wizamart to Orion across entire codebase

Replace all ~1,086 occurrences of Wizamart/wizamart/WIZAMART/WizaMart
with Orion/orion/ORION across 184 files. This includes database
identifiers, email addresses, domain references, R2 bucket names,
DNS prefixes, encryption salt, Celery app name, config defaults,
Docker configs, CI configs, documentation, seed data, and templates.

Renames homepage-wizamart.html template to homepage-orion.html.
Fixes duplicate file_pattern key in api.yaml architecture rule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 16:46:56 +01:00
parent 34ee7bb7ad
commit e9253fbd84
184 changed files with 1227 additions and 1228 deletions

View File

@@ -1,6 +1,6 @@
# Docker Deployment
This guide covers deploying Wizamart using Docker and Docker Compose.
This guide covers deploying Orion using Docker and Docker Compose.
**Best for:** Teams who want consistent environments and easy rollbacks.
@@ -59,7 +59,7 @@ services:
ports:
- "127.0.0.1:8000:8000"
environment:
DATABASE_URL: postgresql://wizamart_user:${DB_PASSWORD}@db:5432/wizamart_db
DATABASE_URL: postgresql://orion_user:${DB_PASSWORD}@db:5432/orion_db
REDIS_URL: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/1
env_file:
@@ -87,7 +87,7 @@ services:
restart: always
command: celery -A app.celery worker --loglevel=info --concurrency=4
environment:
DATABASE_URL: postgresql://wizamart_user:${DB_PASSWORD}@db:5432/wizamart_db
DATABASE_URL: postgresql://orion_user:${DB_PASSWORD}@db:5432/orion_db
REDIS_URL: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/1
env_file:
@@ -121,13 +121,13 @@ services:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_DB: wizamart_db
POSTGRES_USER: wizamart_user
POSTGRES_DB: orion_db
POSTGRES_USER: orion_user
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wizamart_user -d wizamart_db"]
test: ["CMD-SHELL", "pg_isready -U orion_user -d orion_db"]
interval: 10s
timeout: 5s
retries: 5
@@ -210,8 +210,8 @@ RUN tailwindcss -i ./static/admin/css/tailwind.css -o ./static/admin/css/tailwin
&& tailwindcss -i ./static/public/css/tailwind.css -o ./static/public/css/tailwind.output.css --minify
# Create non-root user
RUN useradd -m -u 1000 wizamart && chown -R wizamart:wizamart /app
USER wizamart
RUN useradd -m -u 1000 orion && chown -R orion:orion /app
USER orion
EXPOSE 8000
@@ -225,7 +225,7 @@ mkdir -p nginx/conf.d
```
```nginx
# nginx/conf.d/wizamart.conf
# nginx/conf.d/orion.conf
upstream api {
server api:8000;
}
@@ -319,7 +319,7 @@ docker compose -f docker-compose.prod.yml logs --tail 100 api
docker compose -f docker-compose.prod.yml exec api bash
# Database
docker compose -f docker-compose.prod.yml exec db psql -U wizamart_user -d wizamart_db
docker compose -f docker-compose.prod.yml exec db psql -U orion_user -d orion_db
# Redis
docker compose -f docker-compose.prod.yml exec redis redis-cli
@@ -353,14 +353,14 @@ docker compose -f docker-compose.prod.yml exec api alembic upgrade head
```bash
# View image history
docker images wizamart-api
docker images orion-api
# Tag current as backup
docker tag wizamart-api:latest wizamart-api:backup
docker tag orion-api:latest orion-api:backup
# Rollback to previous
docker compose -f docker-compose.prod.yml down api
docker tag wizamart-api:previous wizamart-api:latest
docker tag orion-api:previous orion-api:latest
docker compose -f docker-compose.prod.yml up -d api
```
@@ -372,10 +372,10 @@ docker compose -f docker-compose.prod.yml up -d api
```bash
# Create backup
docker compose -f docker-compose.prod.yml exec db pg_dump -U wizamart_user wizamart_db | gzip > backup_$(date +%Y%m%d).sql.gz
docker compose -f docker-compose.prod.yml exec db pg_dump -U orion_user orion_db | gzip > backup_$(date +%Y%m%d).sql.gz
# Restore backup
gunzip -c backup_20240115.sql.gz | docker compose -f docker-compose.prod.yml exec -T db psql -U wizamart_user -d wizamart_db
gunzip -c backup_20240115.sql.gz | docker compose -f docker-compose.prod.yml exec -T db psql -U orion_user -d orion_db
```
### Volume Backup
@@ -383,7 +383,7 @@ gunzip -c backup_20240115.sql.gz | docker compose -f docker-compose.prod.yml exe
```bash
# Backup all volumes
docker run --rm \
-v wizamart_postgres_data:/data \
-v orion_postgres_data:/data \
-v $(pwd)/backups:/backup \
alpine tar czf /backup/postgres_$(date +%Y%m%d).tar.gz /data
```
@@ -465,7 +465,7 @@ deploy:
### Non-Root User
All containers run as non-root users. The Dockerfile creates a `wizamart` user.
All containers run as non-root users. The Dockerfile creates a `orion` user.
### Secret Management