🐛 Fix TEMPLATES_AUTO_RELOAD not being honored
Now stuff should reload properly again on change.
This commit is contained in:
1 parent
e98a5df858
commit
6f2c8c1e2b
1 file changed
+6
-4
@@ -1348,14 +1348,16 @@ class Server(object):
|
||||
ReverseProxiedEnvironment,
|
||||
)
|
||||
|
||||
s = settings()
|
||||
app.config["TEMPLATES_AUTO_RELOAD"] = True
|
||||
app.config["JSONIFY_PRETTYPRINT_REGULAR"] = False
|
||||
|
||||
# we must not set this before TEMPLATES_AUTO_RELOAD is set to True or that won't take
|
||||
app.debug = self._debug
|
||||
|
||||
# setup octoprint's flask json serialization/deserialization
|
||||
app.json_encoder = OctoPrintJsonEncoder
|
||||
|
||||
app.debug = self._debug
|
||||
app.config["TEMPLATES_AUTO_RELOAD"] = True
|
||||
app.config["JSONIFY_PRETTYPRINT_REGULAR"] = False
|
||||
s = settings()
|
||||
|
||||
secret_key = s.get(["server", "secretKey"])
|
||||
if not secret_key:
|
||||
|
||||
Reference in new issue
Block a user