Server workflow is only git pull and docker compose up --build; env still comes from .env. Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
221 B
Bash
9 lines
221 B
Bash
#!/usr/bin/env bash
|
|
# روی سرور: یک دستور
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
git pull --no-rebase
|
|
docker compose up -d --build
|
|
docker compose ps
|
|
echo "health: curl -s http://127.0.0.1:3000/api/health"
|