Files
go-nkode/deploy_api.sh
2024-11-10 13:06:40 -06:00

26 lines
573 B
Bash

#!/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 ../ go-nkode
#scp go-nkode.tar dkelly@api.nkode.tech:/home/dkelly
scp api.nkode.tech dkelly@217.21.78.137:/home/dkelly
scp go-nkode.tar dkelly@217.21.78.137:/home/dkelly
rm go-nkode.tar