mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
52082f0911
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8260 GitOrigin-RevId: f69ce5249bdc2b606ecb574049dd98558062399e
14 lines
586 B
Makefile
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)'
|
|
|