implement db back to s3
This commit is contained in:
22
deploy_api.sh
Normal file
22
deploy_api.sh
Normal 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
|
||||
Reference in New Issue
Block a user