mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
20 lines
381 B
Makefile
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
|
|
|
|
|