graphql-engine/scripts/make/run.mk
Daniel Harvey 95f5553af6 chore(server): split new statistics log from QueryLog
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8326
GitOrigin-RevId: 02ee652302de5328e63054a6448dca10de7b5c1b
2023-03-15 13:06:47 +00:00

17 lines
718 B
Makefile

# this connection should match postgres settings in `/docker-compose/databases.yaml`
POSTGRES_URL=postgresql://hasura:hasura@localhost:65002/hasura
CONSOLE_EE_ASSETS_PATH=./frontend/dist/apps/server-assets-console-ee
ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log,execution-log
.PHONY: run-pro-server
## run-pro-server: run a pro server backend by a postgres database
run-pro-server:
cd frontend && npm install && npm run server-build:ee
docker compose up -d --wait postgres
cabal run graphql-engine-pro:exe:graphql-engine-pro serve -- \
--enable-console --console-assets-dir '$(CONSOLE_EE_ASSETS_PATH)' \
--enabled-log-types $(ENABLED_LOG_TYPES) \
--database-url '$(POSTGRES_URL)'