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

Access hasura console remotely #3396

Closed
divramod opened this issue Nov 21, 2019 · 4 comments
Closed

Access hasura console remotely #3396

divramod opened this issue Nov 21, 2019 · 4 comments
Labels
c/cli Related to CLI c/console Related to console duplicate This issue or pull request already exists k/enhancement New feature or improve an existing feature

Comments

@divramod
Copy link

Hey,

i have hasura running on a remote server for development.
i can successfully access hasura via my.ip:9080 and the console with http://my.ip:9080/console

now i stumbled over the awesome hasura migrations feature and followed the guide here: https://docs.hasura.io/1.0/graphql/manual/migrations/existing-database.html

I reached step 4 successfully, but have a problem from there:
image

This breaks, because its remote (i am connecting via ssh), and i do not have a browser installed. Am i right?
When i now try to open my.ip:9695 i get an ERR_CONNECTION_REFUSED error.

Can anyone help me out here?

I need to know, how i can reach the server which is running on my remote machine (http://localhost:9695) via my local web browser.

Or is it somehow possible to tell xdg-open on the remote machine to open the browser on my local machine?

Is the command which starts the server and xdg-open sending some credentials with it, so that maybe this is the reason, that i cannot access the console ui via my ip+port?

thx in advance for any hint in the right direction and thx again for the awesome project!

@shahidhk
Copy link
Member

@divramod You should execute hasura console from your development machine or the client machine. It will contact Hasura using my.ip:9080. You should not execute hasura console on the same server as Hasura GraphQL Engine is running.

@divramod
Copy link
Author

hmm, ok. i thought, i could somehow avoid that.
i am developing remote only.
so to have the migrations directory tracked by my git rep i now need to clone it to my local machine too.

is there a reason i should avoid to run hasura console on the same machine as the graphql engine?

@ecthiender ecthiender changed the title [Question] Access hasura console ui remotely Access hasura console remotely Nov 25, 2019
@marionschleifer marionschleifer added the support/needs-action support ticket that requires action by team label Nov 26, 2019
@rikinsk
Copy link
Member

rikinsk commented Dec 12, 2019

There is no real reason to avoid running the console for migrations on the same machine as the graphql engine. The only caveat being that the location where the migrations are being generated should be persistent for obvious reasons.

Will use this issue to track this as a feature request.

@rikinsk rikinsk added c/cli Related to CLI c/console Related to console k/enhancement New feature or improve an existing feature and removed support/needs-action support ticket that requires action by team k/question labels Dec 12, 2019
@shahidhk shahidhk added the duplicate This issue or pull request already exists label Dec 18, 2019
@shahidhk
Copy link
Member

Tracked in #2824

Closing this as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/cli Related to CLI c/console Related to console duplicate This issue or pull request already exists k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants