Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Restore hot reloading of web server [#17]#18

Merged
eastandwestwind merged 1 commit into
mainfrom
fidesops-17-hot-reload
Nov 8, 2021
Merged

Restore hot reloading of web server [#17]#18
eastandwestwind merged 1 commit into
mainfrom
fidesops-17-hot-reload

Conversation

@pattisdr
Copy link
Copy Markdown
Contributor

@pattisdr pattisdr commented Nov 1, 2021

Purpose

Fix hot reloading of web server for dev happiness :)

Changes

  • Use uvicorn's reload=True argument and pass in app import string instead of the application itself when calling uvicorn.run

Ticket

Closes #17

@pattisdr pattisdr marked this pull request as ready for review November 3, 2021 01:33
Copy link
Copy Markdown
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this worked when I updated an endpoint:

fidesops | WARNING:uvicorn.error:WatchGodReload detected file change in '['/fidesops/src/fidesops/api/v1/endpoints/storage_endpoints.py']'. Reloading...

@eastandwestwind eastandwestwind merged commit 465d9f3 into main Nov 8, 2021
@eastandwestwind eastandwestwind deleted the fidesops-17-hot-reload branch November 8, 2021 17:34
@pattisdr pattisdr mentioned this pull request Nov 10, 2021
sanders41 pushed a commit that referenced this pull request Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore hot reloading

3 participants