the server is not able to find generated files until server restart
any way to call a server update??
the issue is that, the server gives 404 when requested the generated file even if its there. It only reads the file once the server is restarted
this is run on boot
https://github.com/pbsds/hatena-server/blob/master/hatena.py#L166
Didn't catch that line, mb.
Will test updating it manually every time an ugomenu generates and post the results in a few hours when i get on pc
called the function after importing from hatena.py after some tests no problems happend. Thanks!!!
turns out the files where cached and it wasnt updating the files
using this to update the code whenever it makes a request
defined here (or imported)
it dosent give any errors but its still giving 404 until server restart
you may have to implement some getChild logic to dynamically traverse the files tree
I see. i will try to implement it in the near future. Ill have to read more python stuff and see if can make it
even tho the code traverses the files and lists them in the console it refuses to update till the server restarts i have been trying, but i cant get it to work. maybe its possible to not serve static files to begin with??? (i am very unexpirienced with protocols)
how Twisted works is that each file or folder is represented with a class/object. Instead of attaching children to the root object at startup, you can override the getChild methods to do the traversal at the time a request happens.
that is for example what happens here
https://github.com/pbsds/hatena-server/blob/master/hatena.py#L53C6-L53C14