Update Makefile to use python3
1 files changed, 6 insertions(+), 2 deletions(-)

M Makefile
M Makefile +6 -2
@@ 27,13 27,17 @@ serve: all
 		test -e $$i/style.css || cp ./style.css $$i/; \
 		test -e $$i/charter || cp -r ./charter $$i/; \
 	done
-	python -m SimpleHTTPServer
+	python3 -m http.server
 
 clean:
 	-rm -rf 20[1-9]*.html index.html feed.atom 20[1-9]*/ style.css fonts.css
 
+HOST=henry@mail.precheur.org
+REMOTE_PATH=/var/www/htdocs/${DOMAIN}/scratchpad
+
 release: scratchpad style.css
-	scp -C scratchpad style.css henry@mail.precheur.org:/var/www/htdocs/${DOMAIN}/scratchpad/
+	scp -C scratchpad style.css ${HOST}:${REMOTE_PATH}
+	ssh ${HOST} 'cd ${REMOTE_PATH}; ./scratchpad < log'
 
 scratchpad: glide
 	go build 'hg.sr.ht/~henryprecheur/scratchpad'