Ajout script déploiement

This commit is contained in:
2023-09-14 01:56:52 +02:00
parent 57da7321d8
commit 60c37f4486

12
deploy.sh Executable file
View File

@@ -0,0 +1,12 @@
#! /usr/bin/bash
set -e
bundle exec jekyll build
USER_RE=`cat ../userrepas.txt`
sshpass -f ../mdpmaraj.txt sftp -P 6969 -oBatchMode=no -b - $USER_RE@sagou.in:/ << EOF
lcd _site
cd www
put -r .
bye
EOF