-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·37 lines (29 loc) · 854 Bytes
/
deploy.sh
File metadata and controls
executable file
·37 lines (29 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Deployment script for Nextcloud Social app
# Automates steps from DEPLOYMENT.md
set -e
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
NC_DIR="$(dirname "$APP_DIR")"
OCC="$NC_DIR/occ"
echo "=== Social App Deployment ==="
echo "App directory: $APP_DIR"
echo "Nextcloud directory: $NC_DIR"
echo ""
# Step 1: Install PHP dependencies
echo "--- Step 1/4: Installing PHP dependencies ---"
cd "$APP_DIR"
composer install --no-dev
# Step 2: Install Node.js dependencies
echo ""
echo "--- Step 2/4: Installing Node.js dependencies ---"
CYPRESS_INSTALL_BINARY=0 npm install
# Step 3: Build JavaScript assets
echo ""
echo "--- Step 3/4: Building JavaScript assets ---"
npm run build
# Step 4: Enable the app
echo ""
echo "--- Step 4/4: Enabling Social app ---"
php "$OCC" app:enable social
echo ""
echo "=== Deployment complete! ==="