forked from bitcoincashorg/bitcoincash.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 696 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 696 Bytes
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
# Please note, this is a standard make file. The rakefile is included for
# temporary purposes as it is currently used to generate translations. The
# goal of this makefile is to avoid needing to install a ruby toolchain for
# casual contributors.
PROJECT ?=
PORT ?= 8080
APP_ENV=dev
default: container
.PHONY: _config.yml
_config.yml:
cp _config-$(APP_ENV).yml _config.yml
prod: APP_ENV=prod
prod: _config.yml
dev: APP_ENV=dev
dev: _config.yml
.PHONY: container
container:
docker build --build-arg APP_ENV=$(APP_ENV) -t $(PROJECT)bitcoincashorg .
.PHONY: run
run: container
docker run -it -p $(PORT):80 $(PROJECT)bitcoincashorg:latest
serve: _config.yml
bundle exec jekyll serve &