https://linen.dev logo
Do many crashed deployments result in a project be...
# help
s
Hello, I've been using cargo shuttle deployment list to find the log information for my project, but I don't seem to getting new logs after 14 crashed deployments, or to be more precise, the most recent Last Updated is still from yesterday, despite 2 or 3 attempts today. Project is still jh-hello-htmx Or should i just keep trying cargo shuttle deploy? Don't want to waste your disk space if its pointless re-trying though. I put the code up on github here if anyone wants a good laugh: https://github.com/jhawkesworth/jh-hello-htmx
g
It could be worth trying
project rm
and
project new
to reload. the standard procedure... 😅
s
Tried project rm, project new earlier, but I'll give it another try
Still only seeing the same 14 failed deployments, oh well, I'll try again tomorrow.
k
Hey @sparse-lamp-74430, still experiencing this?
s
@kind-area-3810 I haven't tried a redeploy since I upgraded shuttle-static-folder to 0.11.3 and found when I 'cargo shuttle run' the contents of my static folder get removed. Its possibly something to do with me trying to use https://docs.rs/rocket/0.5.0-rc.2/rocket/fs/struct.FileServer.html#example but even with the FileServer commented out, I'm pretty sure the static folder contents get deleted.
k
Ah, okay. The static folder being deleted is a bug on our end, we're working on a fix for that 👍
s
Just to follow up, I reverted back to shuttle-static-folder = "= 0.11.0" (i,e, pinned to stop the folder delete issue) and recreated the project with --idle-minutes 0 I am now seeing new crashed logs. Looks like I need to figure out a way to get rocket::fs::FileServer and shuttle-static-folder to play nice - I want to mount a sub-folder but I get this: 2023-03-08T18:14:59.208208695Z ERROR rocket::fs::server: FileServer path '/opt/shuttle/shuttle-builds/jh-hello-htmx/templates/static' is not a directory.
k
Ah, I see. There are some issues with nested folders: , we discussed supporting it recently but we haven't opened an issue yet.
Sorry for the late reply 😄
Feel free to open a feature request for this btw
s
Thank you @kind-area-3810 - feature request opened: https://github.com/shuttle-hq/shuttle/issues/701
5 Views