#! /usr/bin/bash

set -e

export JEKYLL_ENV=repas
bundle exec jekyll build
export 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

export JEKYLL_ENV=vh
bundle exec jekyll build --config _config.yml,_configar.yml
export USER_VH=`cat ../uservh.txt`
sshpass -f ../mdpmaraj.txt sftp -P 6969 -oBatchMode=no -b - $USER_VH@sagou.in:/ << EOF
lcd _site
cd www
put -r .
bye
EOF
