forked from texas/texplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (32 loc) · 1.16 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
ELASTICSEARCH_URL = https://ik44vn6o9c:[email protected]
help:
@echo "help:"
@echo "-------------------------------------------"
@echo "data Get data"
@echo "es Start an Elasticsearch Cluster"
@echo "index Index the csv in Elasticsearch"
data: data/Historical\ Marker_20150521_145030_254.csv
data/Historical\ Marker_20150521_145030_254.csv:
mkdir -p data
curl https://s3-us-west-2.amazonaws.com/data.codingnews.info/Historical+Marker_20150521_145030_254.csv > "$@"
es:
@docker rm -f ufo_es &>/dev/null && sleep 1 || true
docker run -d --name=ufo_es -p 9200:9200 elasticsearch \
elasticsearch -Des.http.cors.enabled=true
index:
python main.py
# Github Pages Deployment
gh-pages:
# delete and recreate the existing "gh-pages" branch
@git branch -D gh-pages 2>/dev/null || true
git checkout -b gh-pages
# create static files:
NODE_ENV=production ELASTICSEARCH_URL=$(ELASTICSEARCH_URL) grunt build
# add them to the repo (wouldn't normally do this)
git add -f app.js
git commit -m "deploy to gh-pages"
# force push to overwrite gh-pages branch
git push origin -f gh-pages
git checkout -
# cleanup
git branch -D gh-pages