Kokkoja: first public assembly
Assembled from the development repository by tools/make_release.sh. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
95c80d04c9
39 files changed
+9905
No files matched your search
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Deploy the Kokkoja server: copy the relay, the client and the server
|
||||
# files to the VPS, then run deploy/setup_vps.sh there. Run from the
|
||||
# project directory on a development machine.
|
||||
#
|
||||
# deploy/deploy.sh
|
||||
#
|
||||
# KOKKOJA_SERVER names the ssh destination (default root@vps313847.iceservers.net).
|
||||
# The site's config.json is written here: the relay and site addresses
|
||||
# below are the server's public names.
|
||||
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
server=${KOKKOJA_SERVER:-root@vps313847.iceservers.net}
|
||||
site=https://kokkoja.andykopra.com/
|
||||
relay=wss://kokkoja.andykopra.com/relay
|
||||
|
||||
staging=$(mktemp -d)
|
||||
trap 'rm -rf "$staging"' EXIT
|
||||
mkdir -p "$staging/relay" "$staging/client" "$staging/deploy"
|
||||
cp relay/kokkoja_relay.py relay/requirements.txt "$staging/relay/"
|
||||
rsync -a --exclude '__pycache__' client/ "$staging/client/"
|
||||
printf '{"relay": "%s", "storage": "browser", "site": "%s"}\n' "$relay" "$site" > "$staging/client/config.json"
|
||||
cp deploy/kokkoja-relay.service deploy/nginx-site.conf deploy/setup_vps.sh "$staging/deploy/"
|
||||
|
||||
ssh "$server" 'mkdir -p /opt/kokkoja/incoming'
|
||||
rsync -a --delete "$staging/" "$server:/opt/kokkoja/incoming/"
|
||||
ssh "$server" 'bash /opt/kokkoja/incoming/deploy/setup_vps.sh'
|
||||
Reference in new issue
Block a user