Initial deploy bundle for WebRTC signaling server and multipeer demo.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xin Wang
2026-07-19 16:31:41 +08:00
commit 31828ead62
12 changed files with 1248 additions and 0 deletions

15
scripts/post-receive Normal file
View File

@@ -0,0 +1,15 @@
#! /usr/bin/env zsh
WEB_ROOT=/var/www
APP_DOMAIN=prag.webrtc.gallery
GIT_REPO=$HOME/repos/$APP_DOMAIN.git
TMP_GIT_CLONE=/tmp/$APP_DOMAIN
DEPLOYED_APP=$WEB_ROOT/$APP_DOMAIN/app
git clone $GIT_REPO $TMP_GIT_CLONE
cd $TMP_GIT_CLONE
npm install
rm -rf $DEPLOYED_APP
mv $TMP_GIT_CLONE $DEPLOYED_APP
exit