working on the backup management parts
This commit is contained in:
25
scripts/rebuild-and-restart.sh
Executable file
25
scripts/rebuild-and-restart.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "🔨 Rebuilding Calypso API..."
|
||||
cd /development/calypso/backend
|
||||
make build
|
||||
|
||||
echo ""
|
||||
echo "🔨 Rebuilding Calypso Frontend..."
|
||||
cd /development/calypso/frontend
|
||||
npm run build
|
||||
|
||||
echo ""
|
||||
echo "🔄 Restarting API service..."
|
||||
systemctl restart calypso-api.service
|
||||
|
||||
echo "🔄 Restarting Frontend service..."
|
||||
systemctl restart calypso-frontend.service
|
||||
|
||||
echo ""
|
||||
echo "✅ Build and restart complete!"
|
||||
echo ""
|
||||
|
||||
systemctl status calypso-api.service calypso-frontend.service --no-pager
|
||||
Reference in New Issue
Block a user