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

entrypoint.sh should set foxx-cli default server #84

Open
pluma opened this issue Feb 16, 2020 · 2 comments
Open

entrypoint.sh should set foxx-cli default server #84

pluma opened this issue Feb 16, 2020 · 2 comments

Comments

@pluma
Copy link

pluma commented Feb 16, 2020

Users probably aren't aware that they have to make sure foxx-cli talks to the endpoint 127.0.0.1:8999 or whatever arangod happens to be set to listen to during the init phase if they want their init scripts to work correctly.

To simplify this, entrypoint.sh should run the following:

foxx server set default tcp://127.0.0.1:$ARANGO_INIT_PORT

before looping over the files in the init scripts directory and then

foxx server remove default

right after the loop.

This is a DX papercut but it seems like a low-hanging fruit as we're already shipping the foxx-cli.

This means users can run this:

foxx install /myapp /myapp.zip

instead of this:

foxx install /myapp /myapp.zip -H tcp://127.0.0.1:$ARANGO_INIT_PORT

(and don't have to dig into the code to figure out $ARANGO_INIT_PORT is even a thing)

/cc @joerg84 FYI

@pluma
Copy link
Author

pluma commented Feb 16, 2020

Looks like this was actually implemented before and then removed? 50f31d7

@dothebart I can't seem to find any explanation for this change. Can you clarify?

@pluma
Copy link
Author

pluma commented Feb 16, 2020

If this is a permissions thing, we should just create the file manually (~/.foxxrc):

[server.default]
url=tcp://127.0.0.1:8999
database=_system
username=root
password=

Please don't remove Foxx-related features without telling me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant