mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
Track real website deploy success/failure and support master branch.
Deploy agent waits for build completion, writes status, and checks out origin/HEAD (main or master) so empty-main repos like mashinify can deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
acc8f35682
commit
f7cee26975
@@ -1,7 +1,10 @@
|
||||
# Websites deploy / provision agent (runs on websites VM: /opt/websites-agent)
|
||||
#
|
||||
# Endpoints (X-Deploy-Token):
|
||||
# POST /deploy { slug } — git pull + build + pm2 restart
|
||||
# POST /deploy { slug, wait?: true } — git pull + build + pm2 restart
|
||||
# wait=true (API default): sync, returns success/failed
|
||||
# wait=false: fire-and-forget 202 accepted
|
||||
# GET /deploy-status?slug=… — last deploy status JSON for slug
|
||||
# POST /provision { slug, host, gitRepoUrl } — clone + nginx + ecosystem + allowlist (no certbot)
|
||||
# POST /ssl { host, slug? } — certbot for apex + www (nginx must exist)
|
||||
# GET /health
|
||||
@@ -10,3 +13,4 @@
|
||||
#
|
||||
# Note: provision.sh intentionally skips certbot. SSL is issued via POST /ssl so
|
||||
# Edit/Add Domain does not hang when www DNS is wrong.
|
||||
# deploy.sh checks out origin/HEAD (falls back to main, then master).
|
||||
|
||||
Reference in New Issue
Block a user