updated copy

This commit is contained in:
2024-10-26 16:27:22 -05:00
parent b2847ed853
commit 8f86a1dd39
6 changed files with 134 additions and 33 deletions

25
deploy.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
TMP_WEBAPP_DIR=/tmp/nkode_landing_page/
TMP_TAR_DIR=/tmp/nkode_landing_page.tar
mkdir -p "$TMP_WEBAPP_DIR"
cp -r ./index.html "$TMP_WEBAPP_DIR"
cp -r ./404.html "$TMP_WEBAPP_DIR"
cp -r ./50x.html "$TMP_WEBAPP_DIR"
cp -r ./assets "$TMP_WEBAPP_DIR"
export COPYFILE_DISABLE=1
tar -cvf "$TMP_TAR_DIR" -C "$TMP_WEBAPP_DIR" .
rm -rf $TMP_WEBAPP_DIR
scp server_landing_page_deploy.sh dkelly@nkode.tech:/home/dkelly
scp "$TMP_TAR_DIR" dkelly@nkode.tech:/home/dkelly
rm $TMP_TAR_DIR
# Run the deploy.sh script on the remote server using SSH
# ssh dkelly@nkode.tech 'sudo bash /home/dkelly/server_landing_page_deploy.sh'