Mercurial > hg-website
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 |
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 | 2 |
3 deploy-ssh: | |
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 | 6 deploy: |
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 | 16 .PHONY: build deploy-ssh deploy serve |