Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix console via CLI in docker container #9800

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ranjan-purbey
Copy link

Fix #2824

Description

The api server should listen on the --address arg whereas the console (frontend) should use --api-host arg to make API requests. With this change, the following command can be used inside a docker container to run the CLI console:

hasura console --address "0.0.0.0" --api-host "http://localhost" --api-port "9693" --endpoint <GRAPHQL_ENGINE_ENDPOINT> --console-hge-endpoint <GRAPHQL_ENGINE_ENDPOINT_FOR_BROWSER> --no-browser

Changelog

Component : cli

Type: bugfix

Product: community-edition

@ranjan-purbey ranjan-purbey requested a review from a team as a code owner July 25, 2023 21:12
@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @ranjan-purbey, thanks for your PR!

One of my human friends will review this PR and get back to you as soon as possible.

Stay awesome! 😎

@CLAassistant
Copy link

CLAassistant commented Jul 25, 2023

CLA assistant check
All committers have signed the CLA.

@ranjan-purbey ranjan-purbey changed the title Fix CLI in docker container Fix console via CLI in docker container Jul 25, 2023
@Stefmore02 Stefmore02 added the c/cli Related to CLI label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/cli Related to CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running hasura console via CLI in docker container
4 participants