From b3fe2e4dacbc87747cbb288d1f98bd939efe18fa Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Dec 2025 10:42:53 +0100 Subject: [PATCH] Add bootstrap script for VPS deployment --- supabase/bootstrap.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 supabase/bootstrap.sh diff --git a/supabase/bootstrap.sh b/supabase/bootstrap.sh new file mode 100644 index 0000000..c1aeb69 --- /dev/null +++ b/supabase/bootstrap.sh @@ -0,0 +1,23 @@ +#\!/bin/bash +# Supabase Bootstrap for Mylder VPS +set -e + +echo "=== Supabase Bootstrap ===" +cd /srv + +# Clone infrastructure repo +if [ -d "supabase" ]; then + echo "Removing existing supabase directory..." + rm -rf supabase +fi + +# Clone from Gitea (public access via HTTPS) +git clone https://gitea.mylder.io/admin/infrastructure.git /tmp/infrastructure +mv /tmp/infrastructure/supabase /srv/supabase +rm -rf /tmp/infrastructure + +cd /srv/supabase +chmod +x deploy.sh + +echo "=== Files deployed. Run: cd /srv/supabase && ./deploy.sh ===" +