Skip to content

Add the reload option to the server #235

Description

@jdavid

Useful in development, with this option changes to the code are detected and the server is automatically restarted.
But this is not easy to do right now (I've tried). It will be easier once Kludex/uvicorn#2445 is merged.

We would need to change:

# Now
uvicorn.run(app, ...)

# After
uvicorn.run("caterva2.services.sub:app", ..., reload=True)

The problem then is passing the configuration to the app. The PR above should make it easy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions