graphql-engine/scripts/make/run.mk
Daniel Harvey 52082f0911 chore(tooling): add make run-pro-server
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8260
GitOrigin-RevId: f69ce5249bdc2b606ecb574049dd98558062399e
2023-03-09 12:05:02 +00:00

14 lines
586 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/app/server-assets-console-ee
.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)' \
--database-url '$(POSTGRES_URL)'