Initial commit

This commit is contained in:
2026-07-14 12:10:22 +03:00
Unverified
commit 50ea565433
39 changed files with 3611 additions and 0 deletions
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Classic FromChat deploy: build local images, generate production compose, push to server.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
DEPLOYMENT_ROOT="${SCRIPT_DIR}"
SCRIPTS="${DEPLOYMENT_ROOT}/scripts"
# Prefer backend venv (has rich + dotenv), then deployment .venv, then python3.
PYTHON=""
for candidate in \
"${DEPLOYMENT_ROOT}/../backend/.venv/bin/python3" \
"${DEPLOYMENT_ROOT}/.venv/bin/python3" \
"$(command -v python3 || true)"
do
if [[ -n "${candidate}" && -x "${candidate}" ]]; then
PYTHON="${candidate}"
break
fi
done
[[ -n "${PYTHON}" ]] || { echo "python3 not found" >&2; exit 1; }
export PYTHONPATH="${SCRIPTS}${PYTHONPATH:+:${PYTHONPATH}}"
exec "${PYTHON}" -m deploy.main "$@"