annotate Makefile @ 471:d910d5ce9b0b

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.
author Augie Fackler <raf@durin42.com>
date Fri, 23 Dec 2016 11:05:45 -0500
parents 94ad26ab1689
children f8cee73d5cf0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
471
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
1 all:: serve
391
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
2
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
3 deploy-ssh:
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
4 ssh selenic 'cd /home/hg/www && hg pull -u'
470
94ad26ab1689 Makefile: add extra blank lines between rule for readability
Augie Fackler <raf@durin42.com>
parents: 391
diff changeset
5
391
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
6 deploy:
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
7 cd /home/hg/www && hg pull -u
470
94ad26ab1689 Makefile: add extra blank lines between rule for readability
Augie Fackler <raf@durin42.com>
parents: 391
diff changeset
8
471
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
9 serve: .env
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
10 HGWEBSITE_DEBUG=1 .env/bin/python hgwebsite.py
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
11
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
12 .env:
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
13 python -m virtualenv .env
d910d5ce9b0b Makefile: update makefile to not mention blatter
Augie Fackler <raf@durin42.com>
parents: 470
diff changeset
14 .env/bin/pip install flask
470
94ad26ab1689 Makefile: add extra blank lines between rule for readability
Augie Fackler <raf@durin42.com>
parents: 391
diff changeset
15
391
89c7ce3d2ffe Add Makefile and HOWTO
David Soria Parra <dsp@php.net>
parents:
diff changeset
16 .PHONY: build deploy-ssh deploy serve