-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 1.37 KB
/
Makefile
File metadata and controls
44 lines (34 loc) · 1.37 KB
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
base_client_js_url = git@github.com:bitclave/base-client-js.git
base_client_js_dir = /tmp/base-client-js
postinstall: update_base_client_js
rm -rf ./node_modules/bitcore-ecies/node_modules/bitcore-lib
rm -rf ./node_modules/bitcore-message/node_modules/bitcore-lib
update_base_client_js:
git -C $(base_client_js_dir) pull || git clone --depth 1 --branch develop $(base_client_js_url) $(base_client_js_dir)
npm install $(base_client_js_dir)/example/public/base-lib/bitclave-base
rm -rf $(base_client_js_dir)
build_js_staging:
npm run build_staging
build_js_dev:
npm run build_dev
scss:
scss ./base_auth/templates/style.scss:./statics/css/style.css --watch
clean:
find . -name "*.pyc" -exec rm -f {} \;
translate:
./manage.py makemessages --all
./manage.py compilemessages
heroku_remotes:
git remote add heroku_staging https://git.heroku.com/base-auth-staging.git
heroku_buildpacks_prod:
heroku labs:enable runtime-dyno-metadata --remote heroku_prod
heroku buildpacks:clear --remote heroku_prod
heroku buildpacks:set --remote heroku_prod --index 1 https://github.com/piotras/heroku-buildpack-gettext.git
heroku buildpacks:set --remote heroku_prod --index 2 heroku/ruby
heroku buildpacks:set --remote heroku_prod --index 3 heroku/python
deploy_staging:
ifneq ($(shell git rev-parse --abbrev-ref HEAD),master)
$(error Wrong branch)
else
git push heroku_staging -f HEAD:master
endif