-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
37 lines (29 loc) · 993 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
30
31
32
33
34
35
36
37
SHELL := /bin/bash
.PHONY: bootstrap
bootstrap: ## Install dependencies
bundle install
.PHONY: run
run: development generate-tech-docs-yml ## Runs the app in development
bundle exec middleman server
.PHONY: generate-tech-docs-yml
generate-tech-docs-yml:
@erb config/tech-docs.yml.erb > config/tech-docs.yml
.PHONY: bootstrap-with-docker
bootstrap-with-docker: ## Prepare the Docker builder image
docker build -f docker/Dockerfile --target ruby_build -t notifications-tech-docs .
.PHONY: run-with-docker
run-with-docker:
export DOCKER_ARGS="-p 4567:4567 -p 35729:35729" && \
./scripts/run_with_docker.sh make run
.PHONY: development
development: ## Set environment to development
$(eval export HOST='http://localhost:4567')
@true
.PHONY: preview
preview: ## Set environment to preview
$(eval export HOST='https://docs.notify.works')
@true
.PHONY: production
production: ## Set environment to production
$(eval export HOST='https://docs.notifications.service.gov.uk')
@true