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

Make git SHA and pipdeptree available as static files #334

Closed
1 task
thekaveman opened this issue Sep 27, 2023 · 1 comment · Fixed by #336
Closed
1 task

Make git SHA and pipdeptree available as static files #334

thekaveman opened this issue Sep 27, 2023 · 1 comment · Fixed by #336
Assignees
Labels
chore Chores and tasks for code cleanup, dev experience, etc.

Comments

@thekaveman
Copy link
Member

Similar to e.g. benefits.calitp.org/static/sha.txt, it would be nice to be able to see the SHA of the deployed version of Eligibility Server as another quick check.

See also the work in cal-itp/benefits#1733 to get the Python dependency tree available as a static file in the image.

  • Need to figure out how to serve static files from Eligibility Server -- ideally we aren't creating endpoints in the app, and this can be handled by nginx before the request even gets to the app (like how static files work in benefits).
@thekaveman thekaveman added the chore Chores and tasks for code cleanup, dev experience, etc. label Sep 27, 2023
@thekaveman thekaveman moved this from Todo to Stretch in Digital Services Sep 27, 2023
@angela-tran
Copy link
Member

From the Flask docs on static files, it is as simple as having a file in the /static directory.

I tested it out by creating a file at eligibility_server/static/sha.txt and launching the Flask app. I was able to see the file at <url>/static/sha.txt 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chores and tasks for code cleanup, dev experience, etc.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants