Helpful to setup git-ftp to push:
brew install git-ftp
- Add the following to .git/config
[git-ftp]
url = ftp.siggraphdigitalarts.hosting.acm.org
user = [email protected]
password = PASSWORD
syncroot = _site/
To update the site:
jekyll build
git commit -m "updated"
git ftp push
To automatically upload on a git push you could even put the following inside of .git/hooks/pre-push:
#!/bin/sh
echo "///START JEKYLL BUILD///"
jekyll build
git add -A
git commit -am "jekyll built"
echo "///END JEKYLL BUILD///\n"
echo "///START GIT FTP PUSH///"
git ftp push
echo "///END GIT FTP PUSH///\n"
Then to update the site you only need to: git push