mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
build: add script to deploy backend server
This commit is contained in:
parent
17cfb2ad7b
commit
a4827f2d72
11
bin/deployBackend.sh
Executable file
11
bin/deployBackend.sh
Executable file
|
@ -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"
|
|
@ -1,2 +1,6 @@
|
|||
CF_ZONE_ID= #cloudflare zone id
|
||||
CF_API_KEY= #cloudflare api key
|
||||
CF_API_KEY= #cloudflare api key
|
||||
|
||||
BE_HOST= #backend host
|
||||
BE_USER= #backend user
|
||||
BE_SCRIPT_PATH= #backend deploy script path
|
Loading…
Reference in a new issue