Graphql-engine: [graphql-engine] Unable to override port

Created on 7 May 2020  路  4Comments  路  Source: hasura/graphql-engine

graphql-engine always starts on default port 8080 even if the port is specified.

graphql-engine --port 9090 serve

Version: hasura/graphql-engine:v1.2.1
Running in Docker on Windows

question

All 4 comments

Hey @mubaidr 馃憢 , I think you are looking for --server-port
https://hasura.io/docs/1.0/graphql/manual/deployment/graphql-engine-flags/reference.html#command-flags

But the graphql-engine binary help points to --port usage. anyway thanks.

I think graphql-engine cli has more bugs. e.g. when passing --enable-console false to the serve command raises error:

command:

graphql-engine serve --enable-console false

Error:

api_1  | Invalid argument `false'
api_1  |
api_1  | Usage: graphql-engine [--host <HOST>] [-p|--port <PORT>] [-u|--user <USER>]
api_1  |                       [--password <PASSWORD>] [--database-url <DATABASE-URL>]
api_1  |                       [-d|--dbname <DBNAME>] [--retries NO OF RETRIES] COMMAND

@mubaidr I believe the --enable-console flag doesnt take any arguments. If the flag is present, it signifies true and if the flag isnt set it signifies false.

Our docs have an inconsistency which we will be fixing soon

Was this page helpful?
0 / 5 - 0 ratings