Add bootstrap script for VPS deployment
This commit is contained in:
23
supabase/bootstrap.sh
Normal file
23
supabase/bootstrap.sh
Normal file
@@ -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 ==="
|
||||||
|
|
||||||
Reference in New Issue
Block a user