Hi,
I’m totally newb on glitch…
I’ve reached to setup a tornado server, with websocket support : all is working like a charm
But I need to store some dynamic data (3kb max), I want to save a json object, and reuse it later …
What is the way to do that ?
I reach to save it in my filesystem … but under the editor : it always show me an older version of it. (There is no refresh button in the ui) … will it persist after a reload ?! can’t understand the meaning of that
Hi @manatian! Welcome to the Glitch support community! How have you been saving it in your filesystem? I think this should be doable. I could also take a look at the project itself if that’s easier – you can just share the project name here
Oh interesting! When you say that it doesn’t change under the UI editor, do you mean that you open the file in the UI editor and the contents dont’ seem to have changed? If you run refresh in the console, does the file update?
Amazing!! Yeah, it seems like sometimes the UI editor gets out of sync with the files (this is something I usually see if I’m creating/manipulating files through the command line, so I wondered if it could happen here also!) Good luck with your project!
This (the Editor and backend not always being in sync) is expected behavior at the moment. The Editor only knows about Editor things, but picks up backend changes whenever refresh is executed.