-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
29 lines (21 loc) · 936 Bytes
/
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
PRODUCTION_BUCKET=vgtc.org
STAGING_BUCKET=staging.vgtc.org
PRODUCTION_BRANCH=production
STAGING_BRANCH=master
all: site
site:
./venv/bin/python ./scripts/check_duplicate_permalinks.py
jekyll build
./scripts/fix_file_extensions.sh
production: site
cd _site; && ../venv/bin/python ../scripts/sync_with_s3_boto.py $(PRODUCTION_BRANCH) $(PRODUCTION_BUCKET)
staging: site
cd _site && ../venv/bin/python ../scripts/sync_with_s3_boto.py $(STAGING_BRANCH) $(STAGING_BUCKET)
################################################################################
# sometimes you might want to clean the entire bucket - but this can
# eat a lot of bandwidth, and the website will be missing content for
# a little while. BEWARE
staging-clean:
cd _site && ../venv/bin/python ../scripts/sync_with_s3_boto.py CLEAN $(STAGING_BUCKET)
production-clean:
cd _site && ../venv/bin/python ../scripts/sync_with_s3_boto.py CLEAN $(PRODUCTION_BUCKET)