forked from omo/gisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PIP_REQUIREMENT = "requirements.txt"
TEST_OPTIONS ?= ""
run:
. ./bin/activate && python web.py
grun:
. ./bin/activate && gunicorn --config=confs/gunicorn.conf.py web:app
test:
. ./bin/activate && python -m unittest discover ${TEST_OPTIONS}
all:
echo "do nothing for now"
upload-lessig:
./bin/gisteder upload --url "http://lessig.tumblr.com/post/24065401182/commencement-address-to-atlantas-john-marshall-law" --title "Commencement Address to Atlanta’s John Marshall Law School" --file data/lessig.md
download-lessig:
./bin/gisteder download --gist 4965816
fetch-shirky:
./bin/gisteder fetch --url="http://www.ted.com/talks/clay_shirky_how_the_internet_will_one_day_transform_government"
clean:
-find gisted -name "*.pyc" | xargs rm
-rm *.pyc
#
# virtualenv related rules
#
freeze: ${PIP_REQUIREMENT}
install:
. ./bin/activate && pip install --upgrade -r ${PIP_REQUIREMENT}
${PIP_REQUIREMENT}:
. ./bin/activate && pip freeze > $@
# Fabrics
deploy:
. ./bin/activate && fab -H gisted.in -u ubuntu deploy
reload:
. ./bin/activate && fab -H gisted.in -u ubuntu reload_daemons
init_app:
. ./bin/activate && fab -H gisted.in -u ubuntu init_app
.PHONY: ${PIP_REQUIREMENT} deploy run clean test all fetch-shirky download-lessig upload-lessig install