Change PROD_NAME to PROD_HOST to be more specific.

This commit is contained in:
2026-03-27 17:26:07 -07:00
parent 7e7214eaf7
commit 9bde085ab4
2 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ fi
# Quickly log onto production server. # Quickly log onto production server.
# Setting up ssh-keygen and ssh-copy-id make this even faster! # Setting up ssh-keygen and ssh-copy-id make this even faster!
if [[ -n $PROD_PORT && -n $PROD_USER && -n $PROD_NAME ]]; then if [[ -n $PROD_PORT && -n $PROD_USER && -n $PROD_HOST ]]; then
alias prod="ssh -p $PROD_PORT $PROD_USER@$PROD_NAME" alias prod="ssh -p $PROD_PORT $PROD_USER@$PROD_HOST"
else else
alias prod="echo 'ERROR: .env not set up properly, please fix and reload RC.'" alias prod="echo 'ERROR: .env not set up properly, please fix and reload RC.'"
fi fi
@@ -515,7 +515,7 @@ function pull_prod_backup {
fi fi
mkdir -pv tmp mkdir -pv tmp
scp -P $PROD_PORT \ scp -P $PROD_PORT \
$PROD_USER@$PROD_NAME:"$BACKUP_DIR/*${backup_type}*.zip" \ $PROD_USER@$PROD_HOST:"$BACKUP_DIR/*${backup_type}*.zip" \
tmp/ tmp/
if [[ "$?" == "0" ]]; then if [[ "$?" == "0" ]]; then
echo "Succeeded!" echo "Succeeded!"

View File

@@ -1,7 +1,7 @@
# Variables for fast-access of production server. # Variables for fast-access of production server.
PROD_USER=user PROD_USER=user
PROD_NAME=example.com PROD_HOST=example.com
PROD_PORT=2222 PROD_PORT=2222
PROD_GIT_USER=git PROD_GIT_USER=git