mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 08:55:37 +08:00
11 lines
257 B
Bash
11 lines
257 B
Bash
|
#!/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"
|