-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
executable file
·42 lines (35 loc) · 1.18 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
SHELL := /usr/bin/env bash
.PHONY: localdev
localdev:
export MACHINE_HOST_IP=$$(hostname -I | awk '{print $$1}'); \
docker-compose -f ./localdev/docker-compose.yml up --build --remove-orphans
.PHONY: localmac
localmac:
export MACHINE_HOST_IP=$$(ipconfig getifaddr en0); \
docker-compose -f ./localdev/docker-compose.yml -f ./localdev/docker-compose-arm64.yml up --build --remove-orphans
.PHONY: dev
dev:
@DATABASE_URL=$$(grep -m 1 '^DATABASE_URL=' app/.env.local | cut -d '=' -f 2-) \
npm run prisma-push --prefix app && \
npm run dev --prefix app
.PHONY: install
install:
pnpm install
npm install --prefix app
npm install --prefix data-migrations
.PHONY: asdf-install
asdf-install:
cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true
asdf plugin-update --all
asdf install
asdf reshim
# To copy data from the live environment, please follow these steps:
# 1. Log into the OCP API using the API token provided by the OCP console.
# 2. Select the environment namespace with the command 'oc project abcdef-xxx'.
# 3. Execute the following Make command:
.PHONY: copy-db
copy-db:
./.bin/copy-db.sh
.PHONY: format-python
format-python:
autopep8 --in-place --recursive .