Update API media endpoints and deploy scripts

This commit is contained in:
Noro Studio
2026-06-30 21:02:21 +03:30
parent b0361594b1
commit dc2b202797
4 changed files with 101 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Clone all Studio Noro repos into /var/www/studionoro
set -euo pipefail
APP_ROOT="${APP_ROOT:-/var/www/studionoro}"
GIT_BASE="${GIT_BASE:-https://get.feep.ir/noro}"
mkdir -p "$APP_ROOT"
cd "$APP_ROOT"
if [ ! -d api ]; then
git clone "${GIT_BASE}/server.git" _server-tmp
mv _server-tmp/api api
mv _server-tmp/deploy deploy
rm -rf _server-tmp
fi
if [ ! -d nuxt-tailwind-app ]; then
git clone "${GIT_BASE}/site.git" nuxt-tailwind-app
fi
if [ ! -d admin ]; then
git clone "${GIT_BASE}/admin.git" admin
fi
echo "Repos ready in $APP_ROOT:"
ls -la "$APP_ROOT"