Update remote update
authorPeng Li <seudut@gmail.com>
Sun, 5 Mar 2017 12:47:34 +0000 (20:47 +0800)
committerPeng Li <seudut@gmail.com>
Sun, 5 Mar 2017 12:47:34 +0000 (20:47 +0800)
.travis.yml
Makefile

index 3de790f..ca24202 100644 (file)
@@ -11,4 +11,5 @@ env:
   - EVM_EMACS=emacs-25.1-travis
 
 script:
-  - make all FORCE=true
\ No newline at end of file
+  - make all FORCE=true
+  - curl http://www.seudut.com/cgi-bin/update.pl
\ No newline at end of file
index b8a0e31..a302845 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,10 @@ FORCE := "no"
 all:
        $(emacs) -Q --script blog.el $(OUTDIR) $(FORCE)
 
+# used for automation on server
 update:
        git pull
-       $(emacs) -Q --script blog.el $(OUTDIR)
+       $(emacs) -Q --script blog.el "~/www/html" "true"
 
 clean:
        rm -rf _site/*