fix: deploy.sh uses ~/gethumanai-landing (no sudo needed on VPS)
This commit is contained in:
parent
7b24a7f353
commit
50cc253651
|
|
@ -34,7 +34,7 @@ docker compose up --build
|
||||||
|
|
||||||
The script:
|
The script:
|
||||||
1. Commits any pending changes and pushes to Forgejo (`oskar/gethumanai-landing`).
|
1. Commits any pending changes and pushes to Forgejo (`oskar/gethumanai-landing`).
|
||||||
2. SSH-es to `ubuntu-4gb-hel1-1`, pulls the repo and runs `docker compose up -d --build`.
|
2. SSH-es to `ubuntu-4gb-hel1-1`, clones/pulls to `~/gethumanai-landing` and runs `docker compose up -d --build`.
|
||||||
|
|
||||||
The container joins the `npm_proxy` Docker network. In **Nginx Proxy Manager** on the VPS,
|
The container joins the `npm_proxy` Docker network. In **Nginx Proxy Manager** on the VPS,
|
||||||
create a proxy host: `gethumanai.com` → `http://humanai-landing:80`.
|
create a proxy host: `gethumanai.com` → `http://humanai-landing:80`.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ set -euo pipefail
|
||||||
|
|
||||||
VPS="ubuntu-4gb-hel1-1"
|
VPS="ubuntu-4gb-hel1-1"
|
||||||
REPO_DIR="/home/oskar/projects/gethumanai-landing"
|
REPO_DIR="/home/oskar/projects/gethumanai-landing"
|
||||||
VPS_DEPLOY_DIR="/opt/gethumanai-landing"
|
VPS_DEPLOY_DIR="/home/oskar/gethumanai-landing"
|
||||||
FORGEJO_REMOTE="ssh://git@100.108.208.3:222/oskar/gethumanai-landing.git"
|
FORGEJO_REMOTE="ssh://git@100.108.208.3:222/oskar/gethumanai-landing.git"
|
||||||
|
|
||||||
# ── 1. Commit & push (SATURN) ──────────────────────────────────────────────
|
# ── 1. Commit & push (SATURN) ──────────────────────────────────────────────
|
||||||
|
|
@ -24,7 +24,7 @@ git push origin main
|
||||||
# Host: ubuntu-4gb-hel1-1
|
# Host: ubuntu-4gb-hel1-1
|
||||||
ssh "$VPS" bash -s <<'REMOTE'
|
ssh "$VPS" bash -s <<'REMOTE'
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
DEPLOY_DIR="/opt/gethumanai-landing"
|
DEPLOY_DIR="/home/oskar/gethumanai-landing"
|
||||||
|
|
||||||
if [ ! -d "$DEPLOY_DIR/.git" ]; then
|
if [ ! -d "$DEPLOY_DIR/.git" ]; then
|
||||||
git clone ssh://git@100.108.208.3:222/oskar/gethumanai-landing.git "$DEPLOY_DIR"
|
git clone ssh://git@100.108.208.3:222/oskar/gethumanai-landing.git "$DEPLOY_DIR"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue