-
Notifications
You must be signed in to change notification settings - Fork 3
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
ddn run jwt-gen #111
base: main
Are you sure you want to change the base?
ddn run jwt-gen #111
Conversation
…ommand line. Docs are in the readme of the jwt scripts folder.
todo: test on windows |
Supergraph build was successful! 🎉 Build URLs:
Console URLs:
Commit ID: b350ce2 |
Supergraph build was successful! 🎉 Build URLs:
Console URLs:
Commit ID: ae5bc02 |
@@ -79,3 +79,6 @@ definition: | |||
docker-stop: | |||
bash: for file in compose*.yaml $(find ../.data -type f -name "compose.yaml"); do docker compose -f $file down -v; done | |||
powershell: docker compose -f compose.yaml down -v; docker compose -f .data/compose.yaml down -v | |||
jwt-gen: | |||
bash: cd ../scripts/jwt && npm i && node ./jwt.mjs --env $(find ../../ -name '.env.cloud.*' -print -quit) -r customer -u 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nitpicks:
- Do we need to do an
npm i
for every command invocation? Users could run that themselves as part of the initial set up - The jwt script is context aware so we don't need to cd into the directory to invoke
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can go either way. I like having it for the cases where I forgot to do it, and it adds milliseconds to the script if it already exists. Can go with your preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I be a pain and ask that we remove the npm i
so the ddn run just calls the script. The script has uses -r customer -u 7 by default so we could always omit those too for simplicity
Created a new ddn run script that invokes the jwt gen tool from the command line. Docs are in the readme of the jwt scripts folder.