sparse-lamp-74430
02/08/2023, 9:17 AMshuttle-service specified as a dependency to this service (^0.9.0) is not supported by this project instance (0.8.0); try updating shuttle-service to '0.8.0' or update the project instance using cargo shuttle project rm and cargo shuttle project new
I tried setting shuttle-service to 0.8.0 in my Cargo.toml but pretty sure shuttle-static-folder only arrived in 0.9.0 and iirc I still hit same error.
so I compared with my (functioning) other project and noticed the return type is different
This - based on the template -
async fn rocket(#[shuttle_static_folder::StaticFolder(folder = "templates")] _static_folder: PathBuf) -> shuttle_service::ShuttleRocket {
But I had this in the functioning project -
async fn rocket(#[shuttle_static_folder::StaticFolder(folder = "templates")] _static_folder: PathBuf) -> Result<Rocket, shuttle_service::Error> {
So I changed return to Result<Rocket, shuttle_service::Error>
and was able to get cargo shuttle deploy --allow-dirty to 'do stuff' after doing the shuttle project new / shuttle project rm dance a couple of times
The build phase of the project seemed to complete, but the deployment crashed.
cargo shuttle logs 1f4d0235-de99-4345-bf49-d014cf1d86b4
2023-02-08T08:41:48.572798562Z ERROR {error="Run error: Custom error: failed to provision shuttle_static_folder :: StaticFolder"} shuttle_deployer::deployment::run: service startup encountered an error
Just in case it was a one-off I tried again, having specified a folder name this time (I'll paste the full code below)... but the result was the same.sparse-lamp-74430
02/08/2023, 9:17 AMkind-area-3810
02/08/2023, 9:21 AMsparse-lamp-74430
02/08/2023, 10:49 AM