mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
95f5553af6
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8326 GitOrigin-RevId: 02ee652302de5328e63054a6448dca10de7b5c1b
17 lines
718 B
Makefile
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)'
|
|
|