]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commitdiff
Deploy without pushing to central server
authorMichal Sojka <michal.sojka@cvut.cz>
Wed, 8 Aug 2018 11:11:59 +0000 (13:11 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Wed, 8 Aug 2018 11:13:29 +0000 (13:13 +0200)
This makes testing easier.

Makefile

index 3ab7db5dd966e3bef3a51263f093b095ca9ebdda..fd785e50bb4282995c15477809e6875554205935 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,3 @@
 deploy:
-       git push
-       ssh coffee@rtime.felk.cvut.cz 'cd coffee-flask && git pull && touch wsgi/coffee.wsgi'
+       git push --force coffee@rtime.felk.cvut.cz:coffee-flask HEAD:deploy
+       ssh coffee@rtime.felk.cvut.cz 'cd coffee-flask && git reset --hard deploy && touch wsgi/coffee.wsgi'