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

ddn run jwt-gen #111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

ddn run jwt-gen #111

wants to merge 2 commits into from

Conversation

motleydev
Copy link
Contributor

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.

…ommand line. Docs are in the readme of the jwt scripts folder.
@motleydev
Copy link
Contributor Author

todo: test on windows

@@ -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
Copy link
Collaborator

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

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

Successfully merging this pull request may close these issues.

2 participants