AppFlowy/backend/Makefile
2021-12-02 21:55:23 +08:00

20 lines
381 B
Makefile

ROOT = "./scripts"
.PHONY: init_database run_docker run_test
init_database:
POSTGRES_PORT=5433 ${ROOT}/init_database.sh
docker_image:
source $(ROOT)/docker_env.sh && docker-compose up -d db
source $(ROOT)/docker_env.sh && docker-compose up -d backend
docker_test:
sh $(ROOT)/docker_test.sh
local_test:
# 🔥 Must run init_database first
SQLX_OFFLINE=true cargo test