Browse Source

Update deployment script to use sftp

Replace rsync with sftp in deployment script. This is a yunohost
requirement
master
Adam Cooper 2 months ago
parent
commit
c498201270
  1. 2
      deploy.sh
  2. 1
      sftp_upload.bat

2
deploy.sh

@ -10,6 +10,6 @@ echo "* DEPLOYING Homepage *"
echo "**********************"
echo ""
echo "Copying files..."
sftp -b sftp_upload.bat adam@theadamcooper.com
sftp -i /home/adam/.ssh/id_rsa_linode -P 39793 -b sftp_upload.bat my_webapp@theadamcooper.com
echo "Done!"
echo "Deployment complete. Visit http://theadamcooper.com to confirm."

1
sftp_upload.bat

@ -1,2 +1,3 @@
put -p index.html /var/www/my_webapp/www/
put -p css/stylesheet.css /var/www/my_webapp/css/
quit
Loading…
Cancel
Save