infra: add make commands for provisioning postgres in macos and linux (#2436)

* infra: add make commands for provisioning postgres in macos and linux

* docs: update commands for provisioning postgres on linux and macos
This commit is contained in:
Shiv Tyagi
2023-11-12 14:56:12 +05:30
committed by GitHub
parent 8906c23c63
commit 2befd0ff14
2 changed files with 11 additions and 5 deletions

View File

@ -8,12 +8,18 @@ build:
@docker volume rm twenty_node_modules_docs > /dev/null 2>&1 || true
@docker compose build
provision-postgres:
provision-postgres-docker:
@docker stop twenty_postgres || true
@docker rm twenty_postgres || true
@docker volume rm twenty_db_data || true
@docker compose up --build postgres -d
provision-postgres-macos:
sh ./scripts/setup-postgres-macos.sh
provision-postgres-linux:
sh ./scripts/setup-postgres-linux.sh
up:
@docker compose up -d