monkeytype/bin/deployBackend.sh

11 lines
257 B
Bash
Raw Normal View History

#!/bin/bash
source .env
echo "Deploying backend to $BE_HOST with script $BE_SCRIPT_PATH"
# Connect to SSH and execute remote script
ssh_output=$(ssh "$BE_USER@$BE_HOST" "$BE_SCRIPT_PATH")
# Print the output
echo "Remote script output:"
echo "$ssh_output"