Files
shop-server/scripts/deploy.env.example
T
@kirill.komarov e67d8bdc0a deploy
2026-05-10 16:49:55 +05:00

20 lines
844 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Скопируйте в deploy.env рядом с deploy-ssh.sh и подставьте значения.
DEPLOY_HOST=192.168.1.88
DEPLOY_USER=root
DEPLOY_PATH=/opt/craftshop
# Куда выкладывается `client/dist/` (совпадайте с root в nginx для SPA + try_files).
DEPLOY_FRONTEND_DIST=/opt/craftshop/www
# Опционально: ssh -i
# DEPLOY_SSH_IDENTITY=C:/Users/Me/.ssh/id_ed25519
# Если API под пользователем deploy — оставьте DEPLOY_SKIP_CHOWN=0 (дефолт chown deploy).
# Если на сервере CRAFTSHOP_USER=root (systemd под root): DEPLOY_SKIP_CHOWN=1 и DEPLOY_SERVER_OWNER=root
DEPLOY_SKIP_CHOWN=0
# DEPLOY_SERVER_OWNER=deploy
# После обновления кода API (под root без sudo)
DEPLOY_RESTART_CMD='systemctl restart craftshop-api'