chore: add deploy_beta and rollback_to_main management scripts
This commit is contained in:
1 parent
6fb086a878
commit
c89b0d6238
2 files changed
+30
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$REPO_DIR"
|
||||
|
||||
echo "=== Rolling back study.qpid.pro to main branch ==="
|
||||
git checkout main
|
||||
|
||||
if [ -f "data/notes.db.backup-main-pre-beta" ]; then
|
||||
echo "Note: Database backup available at data/notes.db.backup-main-pre-beta"
|
||||
fi
|
||||
|
||||
echo "Restarting study-qpid-pro container..."
|
||||
DOCKER_HOST=tcp://127.0.0.1:2375 docker restart study-qpid-pro
|
||||
|
||||
echo "=== Rollback complete! System is running on main branch ==="
|
||||
Reference in new issue
Block a user