From 60c37f448602dcc9c956605bf2782cb952c4f742 Mon Sep 17 00:00:00 2001 From: Antoine Lima Date: Thu, 14 Sep 2023 01:56:52 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20script=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..bbb77c7 --- /dev/null +++ b/deploy.sh @@ -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