# HG changeset patch # User Augie Fackler # Date 1482509145 18000 # Node ID d910d5ce9b0b4d79e63350842b0f6d634a529d08 # Parent 94ad26ab1689f6ef011779a10c91cc4c87bfd3bc Makefile: update makefile to not mention blatter Now instead of trying to use blatter, it offers a 'serve' target which bootstraps a virtualenv (if needed) and runs the flask app in debug mode. diff -r 94ad26ab1689 -r d910d5ce9b0b .hgignore --- a/.hgignore Fri Dec 23 10:53:32 2016 -0500 +++ b/.hgignore Fri Dec 23 11:05:45 2016 -0500 @@ -1,5 +1,6 @@ syntax: glob *.pyc .DS_Store +.env out/** diff -r 94ad26ab1689 -r d910d5ce9b0b Makefile --- a/Makefile Fri Dec 23 10:53:32 2016 -0500 +++ b/Makefile Fri Dec 23 11:05:45 2016 -0500 @@ -1,7 +1,4 @@ -all:: build - -build: - python ../blatter/blatter/__init__.py blat +all:: serve deploy-ssh: ssh selenic 'cd /home/hg/www && hg pull -u' @@ -9,7 +6,11 @@ deploy: cd /home/hg/www && hg pull -u -serve: - python ../blatter/blatter/__init__.py serve +serve: .env + HGWEBSITE_DEBUG=1 .env/bin/python hgwebsite.py + +.env: + python -m virtualenv .env + .env/bin/pip install flask .PHONY: build deploy-ssh deploy serve