Closed tatsumoto-ren closed 6 months ago
You can ask questions here I don't mind.
When I ran the site locally, I noticed one strange thing. If you change an html file and reload the page, or even restart the binary, the page doesn't update. The new content is shown only when I re-run cargo run. I haven't studied the code much, but are the html pages being baked into the binary? Otherwise I'm not sure why it's happening.
Yes. The HTML is compiled into the binary for maximum performance and type safe templates. That means a developer flow of changing the HTML requires a recompilation. It's an unfortunate consequence but it's something I'm willing to put up with.
Sometimes, when I run the server, I can't kill it with ctrl+c afterwards. Only kill -9 works. But sometimes it works just fine.
I'm unsure on the trigger for that but it's most likely a bug.
It is not documented where I should look for configs,databases,logs,leftovers,etc. By running lsof and find I could figure out that:
$XDG_CONFIG_HOME/jimaku
. See here: https://docs.rs/dirs/latest/dirs/fn.config_dir.html$XDG_DATA_HOME/jimaku
. See here: https://docs.rs/dirs/latest/dirs/fn.data_dir.html$XDG_STATE_HOME/jimaku
. See here: https://docs.rs/dirs/latest/dirs/fn.state_dir.htmlThis could probably be documented somewhere.
Lastly, how do I access the admin page? Haven't quite figured it out yet.
It's just /admin. There's nothing special on that page outside of some very lazy logs that I should probably change at some point.
It's just /admin. There's nothing special on that page outside of some very lazy logs that I should probably change at some point.
When I'm trying to open /admin, I'm getting immediately redirected back to /
Upd: probably figured it out. I'm going to address this in a different issue.
Since there's no Matrix space yet, can I ask some questions here instead?
When I ran the site locally, I noticed one strange thing. If you change an html file and reload the page, or even restart the binary, the page doesn't update. The new content is shown only when I re-run
cargo run
. I haven't studied the code much, but are the html pages being baked into the binary? Otherwise I'm not sure why it's happening.Sometimes, when I run the server, I can't kill it with
ctrl+c
afterwards. Onlykill -9
works. But sometimes it works just fine.It is not documented where I should look for configs,databases,logs,leftovers,etc. By running
lsof
andfind
I could figure out that:~/.config/jimaku
,~/.local/share/jimaku
,~/.local/state/jimaku
.Are there any other files that jimaku creates? I think, ideally they should be mentioned in the README.
Lastly, how do I access the admin page? Haven't quite figured it out yet.