implement db back to s3

This commit is contained in:
2024-10-10 15:01:22 -05:00
parent 76e5f86a0b
commit 3574d07997
2 changed files with 101 additions and 0 deletions

22
deploy_api.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Create a temporary directory to hold the files
mkdir -p /tmp/nkodeapi
cp -r ./core/* /tmp/nkodeapi/
cp -r ./hashset/* /tmp/nkodeapi/
cp -r ./py-builtin/* /tmp/nkodeapi/
cp -r ./util/* /tmp/nkodeapi/
cp go.mod /tmp/nkodeapi/
cp main.go /tmp/nkodeapi/
# Disable extended attributes and create the tar file
export COPYFILE_DISABLE=1
tar -cvf go-nkode.tar -C /tmp nkodeapi
# Clean up the temporary directory after the archive is created
rm -rf /tmp/webapp
scp go-nkode.tar dkelly@api.nkode.tech:/home/dkelly