Rebrand from Casera/MyCrib to honeyDue
Total rebrand across all Go API source files: - Go module path: casera-api -> honeydue-api - All imports updated (130+ files) - Docker: containers, images, networks renamed - Email templates: support email, noreply, icon URL - Domains: casera.app/mycrib.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - IAP product IDs updated - Landing page, admin panel, config defaults - Seeds, CI workflows, Makefile, docs - Database table names preserved (no migration needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Deploy Folder
|
||||
|
||||
This folder is the full production deploy toolkit for `myCribAPI-go`.
|
||||
This folder is the full production deploy toolkit for `honeyDueAPI-go`.
|
||||
|
||||
Run deploy with:
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ DEPLOY_MANAGER_SSH_PORT=22
|
||||
DEPLOY_SSH_KEY_PATH=~/.ssh/id_ed25519
|
||||
|
||||
# Stack settings
|
||||
DEPLOY_STACK_NAME=casera
|
||||
DEPLOY_REMOTE_DIR=/opt/casera/deploy
|
||||
DEPLOY_STACK_NAME=honeydue
|
||||
DEPLOY_REMOTE_DIR=/opt/honeydue/deploy
|
||||
DEPLOY_WAIT_SECONDS=420
|
||||
DEPLOY_HEALTHCHECK_URL=https://api.casera.app/api/health/
|
||||
DEPLOY_HEALTHCHECK_URL=https://api.honeyDue.treytartt.com/api/health/
|
||||
|
||||
# Replicas and published ports
|
||||
API_REPLICAS=3
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
# API service settings
|
||||
DEBUG=false
|
||||
ALLOWED_HOSTS=api.casera.app,casera.app
|
||||
CORS_ALLOWED_ORIGINS=https://casera.app,https://admin.casera.app
|
||||
ALLOWED_HOSTS=api.honeyDue.treytartt.com,honeyDue.treytartt.com
|
||||
CORS_ALLOWED_ORIGINS=https://honeyDue.treytartt.com,https://admin.honeyDue.treytartt.com
|
||||
TIMEZONE=UTC
|
||||
BASE_URL=https://casera.app
|
||||
BASE_URL=https://honeyDue.treytartt.com
|
||||
PORT=8000
|
||||
|
||||
# Admin service settings
|
||||
NEXT_PUBLIC_API_URL=https://api.casera.app
|
||||
ADMIN_PANEL_URL=https://admin.casera.app
|
||||
NEXT_PUBLIC_API_URL=https://api.honeyDue.treytartt.com
|
||||
ADMIN_PANEL_URL=https://admin.honeyDue.treytartt.com
|
||||
|
||||
# Database (Neon recommended)
|
||||
DB_HOST=CHANGEME_NEON_HOST
|
||||
DB_PORT=5432
|
||||
POSTGRES_USER=CHANGEME_DB_USER
|
||||
POSTGRES_DB=casera
|
||||
POSTGRES_DB=honeydue
|
||||
DB_SSLMODE=require
|
||||
DB_MAX_OPEN_CONNS=25
|
||||
DB_MAX_IDLE_CONNS=10
|
||||
@@ -29,13 +29,13 @@ EMAIL_HOST=smtp.gmail.com
|
||||
EMAIL_PORT=587
|
||||
EMAIL_USE_TLS=true
|
||||
EMAIL_HOST_USER=CHANGEME_EMAIL_USER
|
||||
DEFAULT_FROM_EMAIL=Casera <noreply@casera.app>
|
||||
DEFAULT_FROM_EMAIL=honeyDue <noreply@honeyDue.treytartt.com>
|
||||
|
||||
# Push notifications
|
||||
# APNS private key goes in deploy/secrets/apns_auth_key.p8
|
||||
APNS_AUTH_KEY_ID=CHANGEME_APNS_KEY_ID
|
||||
APNS_TEAM_ID=CHANGEME_APNS_TEAM_ID
|
||||
APNS_TOPIC=com.tt.casera
|
||||
APNS_TOPIC=com.tt.honeyDue
|
||||
APNS_USE_SANDBOX=false
|
||||
APNS_PRODUCTION=true
|
||||
|
||||
|
||||
@@ -140,8 +140,8 @@ source "${PROD_ENV}"
|
||||
set +a
|
||||
|
||||
DEPLOY_MANAGER_SSH_PORT="${DEPLOY_MANAGER_SSH_PORT:-22}"
|
||||
DEPLOY_STACK_NAME="${DEPLOY_STACK_NAME:-casera}"
|
||||
DEPLOY_REMOTE_DIR="${DEPLOY_REMOTE_DIR:-/opt/casera/deploy}"
|
||||
DEPLOY_STACK_NAME="${DEPLOY_STACK_NAME:-honeydue}"
|
||||
DEPLOY_REMOTE_DIR="${DEPLOY_REMOTE_DIR:-/opt/honeydue/deploy}"
|
||||
DEPLOY_WAIT_SECONDS="${DEPLOY_WAIT_SECONDS:-420}"
|
||||
DEPLOY_TAG="${DEPLOY_TAG:-$(git -C "${REPO_DIR}" rev-parse --short HEAD)}"
|
||||
PUSH_LATEST_TAG="${PUSH_LATEST_TAG:-true}"
|
||||
@@ -183,9 +183,9 @@ if (( app_secret_len < 32 )); then
|
||||
fi
|
||||
|
||||
REGISTRY_PREFIX="${REGISTRY%/}/${REGISTRY_NAMESPACE#/}"
|
||||
API_IMAGE="${REGISTRY_PREFIX}/casera-api:${DEPLOY_TAG}"
|
||||
WORKER_IMAGE="${REGISTRY_PREFIX}/casera-worker:${DEPLOY_TAG}"
|
||||
ADMIN_IMAGE="${REGISTRY_PREFIX}/casera-admin:${DEPLOY_TAG}"
|
||||
API_IMAGE="${REGISTRY_PREFIX}/honeydue-api:${DEPLOY_TAG}"
|
||||
WORKER_IMAGE="${REGISTRY_PREFIX}/honeydue-worker:${DEPLOY_TAG}"
|
||||
ADMIN_IMAGE="${REGISTRY_PREFIX}/honeydue-admin:${DEPLOY_TAG}"
|
||||
|
||||
SSH_KEY_PATH="${DEPLOY_SSH_KEY_PATH:-}"
|
||||
if [[ -n "${SSH_KEY_PATH}" ]]; then
|
||||
@@ -232,12 +232,12 @@ if [[ "${SKIP_BUILD}" != "1" ]]; then
|
||||
|
||||
if [[ "${PUSH_LATEST_TAG}" == "true" ]]; then
|
||||
log "Updating :latest tags"
|
||||
docker tag "${API_IMAGE}" "${REGISTRY_PREFIX}/casera-api:latest"
|
||||
docker tag "${WORKER_IMAGE}" "${REGISTRY_PREFIX}/casera-worker:latest"
|
||||
docker tag "${ADMIN_IMAGE}" "${REGISTRY_PREFIX}/casera-admin:latest"
|
||||
docker push "${REGISTRY_PREFIX}/casera-api:latest"
|
||||
docker push "${REGISTRY_PREFIX}/casera-worker:latest"
|
||||
docker push "${REGISTRY_PREFIX}/casera-admin:latest"
|
||||
docker tag "${API_IMAGE}" "${REGISTRY_PREFIX}/honeydue-api:latest"
|
||||
docker tag "${WORKER_IMAGE}" "${REGISTRY_PREFIX}/honeydue-worker:latest"
|
||||
docker tag "${ADMIN_IMAGE}" "${REGISTRY_PREFIX}/honeydue-admin:latest"
|
||||
docker push "${REGISTRY_PREFIX}/honeydue-api:latest"
|
||||
docker push "${REGISTRY_PREFIX}/honeydue-worker:latest"
|
||||
docker push "${REGISTRY_PREFIX}/honeydue-admin:latest"
|
||||
fi
|
||||
else
|
||||
warn "SKIP_BUILD=1 set. Using prebuilt images for tag: ${DEPLOY_TAG}"
|
||||
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
placement:
|
||||
max_replicas_per_node: 1
|
||||
networks:
|
||||
- casera-network
|
||||
- honeydue-network
|
||||
|
||||
api:
|
||||
image: ${API_IMAGE}
|
||||
@@ -129,7 +129,7 @@ services:
|
||||
delay: 5s
|
||||
order: stop-first
|
||||
networks:
|
||||
- casera-network
|
||||
- honeydue-network
|
||||
|
||||
admin:
|
||||
image: ${ADMIN_IMAGE}
|
||||
@@ -161,7 +161,7 @@ services:
|
||||
delay: 5s
|
||||
order: stop-first
|
||||
networks:
|
||||
- casera-network
|
||||
- honeydue-network
|
||||
|
||||
worker:
|
||||
image: ${WORKER_IMAGE}
|
||||
@@ -236,7 +236,7 @@ services:
|
||||
delay: 5s
|
||||
order: stop-first
|
||||
networks:
|
||||
- casera-network
|
||||
- honeydue-network
|
||||
|
||||
dozzle:
|
||||
image: amir20/dozzle:latest
|
||||
@@ -258,14 +258,14 @@ services:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
networks:
|
||||
- casera-network
|
||||
- honeydue-network
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
uploads:
|
||||
|
||||
networks:
|
||||
casera-network:
|
||||
honeydue-network:
|
||||
driver: overlay
|
||||
driver_opts:
|
||||
encrypted: "true"
|
||||
|
||||
Reference in New Issue
Block a user