updated copy
This commit is contained in:
25
deploy.sh
Normal file
25
deploy.sh
Normal 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'
|
||||
Reference in New Issue
Block a user