/
alt3rmann
/
graphql-engine
Обзор
Документация
Войти
/
alt3rmann
/
graphql-engine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/make/run.mk
49 строк
2 KB
Philip Lykke Carlsen
chore: Small dev improvements
23 июн 2023, 23:22
23 июн 2023, 23:22
a9c2afa
Код
Авторство
О чём код?
# This is the admin secret for the Pro server. # Override it with `make run-pro-server ADMIN_SECRET=my-override`. ADMIN_SECRET ?= top-secret # What kind of logs do we like? ENABLED_LOG_TYPES = startup,http-log,webhook-log,websocket-log,query-log,execution-log # this connection should match postgres settings in `/docker-compose/databases.yaml` HGE_POSTGRES_URL = postgresql://hasura:hasura@localhost:65002/hasura # this connection should match postgres settings in # `/pro/dc-agents/postgres/docker-compose.yml` DC_AGENT_POSTGRES_URL = postgresql://postgres:password@localhost:64002/postgres .PHONY: run-oss-server ## run-oss-server: run an OSS server backend by a PostgreSQL database run-oss-server: $(CONSOLE_CE_ASSETS_PATH) remove-tix-file docker compose up --wait postgres cabal run graphql-engine:exe:graphql-engine -- \ --database-url '$(HGE_POSTGRES_URL)' \ serve \ --dev-mode \ --enable-console --console-assets-dir '$(CONSOLE_CE_ASSETS_PATH)' \ --enabled-log-types '$(ENABLED_LOG_TYPES)' .PHONY: run-pro-server ## run-pro-server: run a pro server backend by a PostgreSQL database run-pro-server: $(CONSOLE_EE_ASSETS_PATH) remove-tix-file docker compose up --wait postgres cabal run graphql-engine-pro:exe:graphql-engine-pro -- \ --database-url '$(HGE_POSTGRES_URL)' \ serve \ --admin-secret '$(ADMIN_SECRET)' \ --enable-console --console-assets-dir '$(CONSOLE_EE_ASSETS_PATH)' \ --enabled-log-types '$(ENABLED_LOG_TYPES)' .PHONY: run-dc-postgres-agent ## run-dc-postgres-agent: run the new exciting Postgres data connector run-dc-postgres-agent: remove-tix-file $(DC_POSTGRES_DOCKER_COMPOSE) up --wait cabal run postgres-agent \ -- --admin-connection-string '$(DC_AGENT_POSTGRES_URL)' .PHONY: run-dc-postgres-agent-watch ## run-dc-postgres-agent-watch run-dc-postgres-agent-watch: remove-tix-file $(DC_POSTGRES_DOCKER_COMPOSE) up --wait watchexec -r -e .hs cabal run postgres-agent \ -- --admin-connection-string '$(DC_AGENT_POSTGRES_URL)'