Open amoxuk opened 1 month ago
add app.finalize() to solve this problem.
But here is a new problem.
After reload, I can request the blueprint's url many times if I refresh the browser quickly, but it returns 404 after the sanic logs 'KeepAlive Timeout,Closing cojnextion.'.
It looks like I reload a temp variable of 'app'.
How to reload the gloable app?
Is there an existing issue for this?
Describe the bug
some package in my folder, I want add new package in the folder at sanic running.
reload success but use the url throw error. Nonetype object is not callable in sanic router
Code snippet
No response
Expected Behavior
No response
How do you run Sanic?
As a script (
app.run
orSanic.serve
)Operating System
Linux
Sanic Version
22.12.0
Additional context
No response