refactor(deploy): update-prod.sh zu update-remotes.sh umbenennen
Ein Skript für Prod und Staging; update-staging.sh entfällt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -81,7 +81,7 @@ require_node_toolchain() {
|
||||
echo ""
|
||||
echo "On the production host, prefer updating the running stack:"
|
||||
echo " docker compose -f docker-compose.yml up -d --build"
|
||||
echo " # or from your workstation: ./scripts/update-prod.sh"
|
||||
echo " # or from your workstation: ./scripts/update-remotes.sh -dest prod"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Backward-compatible wrapper — prefer: ./scripts/update-prod.sh -dest stage
|
||||
set -euo pipefail
|
||||
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
-dest|-dest=*)
|
||||
echo "Error: update-staging.sh always deploys to staging." >&2
|
||||
echo " Use ./scripts/update-prod.sh -dest prod for production." >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
exec "$SCRIPT_DIR/update-prod.sh" -dest stage "$@"
|
||||
Reference in New Issue
Block a user