Auto deploy to ~team webspace

This commit is contained in:
Tito Sacchi 2021-11-15 15:59:55 +01:00
parent f6ea49b188
commit d0cb742c04
2 changed files with 11 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
.*.swp
_cache/
_site/
*.hi
*.o
/site

View File

@ -2,7 +2,7 @@
import Hakyll
main :: IO ()
main = hakyll $ do
main = hakyllWith config $ do
match "images/*" $ do
route idRoute
compile copyFileCompiler
@ -21,4 +21,11 @@ main = hakyll $ do
match "templates/*" $ compile templateBodyCompiler
config :: Configuration
config = defaultConfiguration {
deployCommand = "rsync -avP --delete \
\ --exclude blog --exclude cgi-bin --exclude .DS_Store \
\ _site/ tito@tilde.team:~/public_html"
}
-- vim: ts=4:sts=4:sw=4:et