chore: add deploy_beta and rollback_to_main management scripts
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
|
cd "$REPO_DIR"
|
||||||
|
|
||||||
|
echo "=== Deploying beta-refactor branch to study.qpid.pro ==="
|
||||||
|
git checkout beta-refactor
|
||||||
|
|
||||||
|
echo "Restarting study-qpid-pro container..."
|
||||||
|
DOCKER_HOST=tcp://127.0.0.1:2375 docker restart study-qpid-pro
|
||||||
|
|
||||||
|
echo "=== Deployment complete! System is running on beta-refactor ==="
|
||||||
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