feat: add deploy-final.sh — complete single-command Hetzner install + deploy#153
Merged
Conversation
Agent-Logs-Url: https://github.com/ruffy80/ZeusAI/sessions/77b962de-6389-4e10-b1ab-8ad8ad1c4692 Co-authored-by: ruffy80 <29306714+ruffy80@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ruffy80/ZeusAI/sessions/77b962de-6389-4e10-b1ab-8ad8ad1c4692 Co-authored-by: ruffy80 <29306714+ruffy80@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
ruffy80
April 13, 2026 19:44
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing
setup-server.shbootstraps a fresh server but has no git-based update path. The problem statement script was incomplete (Nginx config truncated), referenced a non-existentfrontend/dir instead ofclient/, and contained several security issues.New script:
UNICORN_FINAL/scripts/deploy-final.shFunctional fixes over problem statement original
frontend/→client/(actual React app directory in UNICORN_FINAL)/stream) withproxy_buffering off, WebSocketUpgradeheader, gzip.git), first install (shallow-clones repo and copiesUNICORN_FINAL/only)delete all→start ecosystem.config.js) to avoid "Process N not found" errors on crashed processesSecurity hardening
eval echo ~$SUDO_USER→getent passwd "$RUN_USER"to eliminate command injection viaSUDO_USERopensslpresence and validates non-empty output before writing secrets to.envBTC_WALLET_ADDRESS,OWNER_NAME,OWNER_EMAIL)Other
>= 20comparison instead ofgrep "^v20\."to avoid downgrading Node 21+certbot.timer(systemd) when present, cron fallback only when the unit is absentSKIP_SSL=1,SKIP_GIT=1,SKIP_FRONTEND=1