diff --git a/bin/deployBackend.sh b/bin/deployBackend.sh new file mode 100755 index 000000000..f5d89b62b --- /dev/null +++ b/bin/deployBackend.sh @@ -0,0 +1,11 @@ +#!/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" \ No newline at end of file diff --git a/example.env b/example.env index 275a6dbbc..a0950b5a9 100644 --- a/example.env +++ b/example.env @@ -1,2 +1,6 @@ CF_ZONE_ID= #cloudflare zone id -CF_API_KEY= #cloudflare api key \ No newline at end of file +CF_API_KEY= #cloudflare api key + +BE_HOST= #backend host +BE_USER= #backend user +BE_SCRIPT_PATH= #backend deploy script path \ No newline at end of file