Update API media endpoints and deploy scripts
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user