27 lines
873 B
YAML
27 lines
873 B
YAML
# PX360 — PROD deploy target.
|
|
# Usage: `make deploy-prod` (runs: target deploy --config deploy/target.prod.yaml)
|
|
#
|
|
# TODO: fill in the real prod server IP + domain below before first deploy.
|
|
app:
|
|
name: "hh-prod" # isolated project dir: ~/.target/hh-prod/
|
|
domain: "your-production-domain.com" # TODO: real prod domain
|
|
port: 8000
|
|
|
|
server:
|
|
ip: "10.10.1.132" # TODO: real prod server IP
|
|
user: "root"
|
|
ssh_key: "~/.ssh/id_rsa"
|
|
|
|
build:
|
|
engine: "local"
|
|
context: "."
|
|
|
|
deploy:
|
|
use_caddy: true
|
|
caddy_email: "ismail.mosa.ibrahim@gmail.com"
|
|
compose_file: "deploy/compose.prod.yml"
|
|
env_file: "deploy/env.prod" # shipped to ~/.target/hh-prod/.env each deploy
|
|
pre_deploy: "python manage.py migrate --noinput" # runs before the swap (old keeps serving)
|
|
cleanup: ["remote", "local"]
|
|
keep_versions: 3
|