/
Makefile
62 lines (47 loc) · 1.32 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Origami Service Makefile
# ------------------------
# This section of the Makefile should not be modified, it includes
# commands from the Origami service Makefile.
# https://github.com/Financial-Times/origami-service-makefile
include node_modules/@financial-times/origami-service-makefile/index.mk
# [edit below this line]
# ------------------------
# Configuration
# -------------
INTEGRATION_TIMEOUT = 10000
INTEGRATION_SLOW = 2000
SERVICE_NAME = Origami Repo Data
SERVICE_SYSTEM_CODE = origami-repo-data
SERVICE_SALESFORCE_ID = $(SERVICE_NAME)
HEROKU_APP_QA = $(SERVICE_SYSTEM_CODE)-qa
HEROKU_APP_EU = $(SERVICE_SYSTEM_CODE)-eu
HEROKU_APP_US = $(SERVICE_SYSTEM_CODE)-us
GRAFANA_DASHBOARD = $(SERVICE_SYSTEM_CODE)
export GITHUB_RELEASE_REPO := Financial-Times/$(SERVICE_SYSTEM_CODE)
# Additional Tasks
# ----------------
db-create:
@createdb origami-repo-data
@$(DONE)
db-drop:
@dropdb origami-repo-data
@$(DONE)
db-create-test:
@createdb origami-repo-data-test
@$(DONE)
db-migrate-up:
@./script/migrate-up.js
@$(DONE)
db-migrate-down:
@./script/migrate-down.js
@$(DONE)
db-seed:
@./script/seed.js
@$(DONE)
# Database migration tasks specific to the release
# phase in Heroku. This prevents migrating twice when
# promoting to production (migrates in EU only)
release-db:
ifneq ($(REGION), US)
@make db-migrate-up
endif