diff --git a/loco-gen/src/lib.rs b/loco-gen/src/lib.rs index fc26b8f67..676b4c8d5 100644 --- a/loco-gen/src/lib.rs +++ b/loco-gen/src/lib.rs @@ -31,7 +31,7 @@ pub struct GenerateResults { rrgen: Vec, local_templates: Vec, } -const DEPLOYMENT_SHUTTLE_RUNTIME_VERSION: &str = "0.46.0"; +const DEPLOYMENT_SHUTTLE_RUNTIME_VERSION: &str = "0.51.0"; const DEPLOYMENT_OPTIONS: &[(&str, DeploymentKind)] = &[ ("Docker", DeploymentKind::Docker), diff --git a/loco-gen/src/templates/deployment/shuttle/config.t b/loco-gen/src/templates/deployment/shuttle/config.t index d5de71eef..0c20a9db1 100644 --- a/loco-gen/src/templates/deployment/shuttle/config.t +++ b/loco-gen/src/templates/deployment/shuttle/config.t @@ -2,4 +2,12 @@ to: "Shuttle.toml" skip_exists: true message: "Shuttle.toml file created successfully" --- -name = "{{pkg_name}}" +[deploy] +include = [ + "config/production.yaml" +] + +[build] +assets = [ + "config/production.yaml" +] diff --git a/loco-gen/src/templates/deployment/shuttle/shuttle.t b/loco-gen/src/templates/deployment/shuttle/shuttle.t index cfba68518..412e08bad 100644 --- a/loco-gen/src/templates/deployment/shuttle/shuttle.t +++ b/loco-gen/src/templates/deployment/shuttle/shuttle.t @@ -17,7 +17,7 @@ injections: - into: Cargo.toml after: \[dependencies\] content: | - shuttle-axum = "{{shuttle_runtime_version}}" + shuttle-axum = { version = "{{shuttle_runtime_version}}", default-features = false, features = ["axum-0-7"] } shuttle-runtime = { version = "{{shuttle_runtime_version}}", default-features = false } {% if with_db -%} shuttle-shared-db = { version = "{{shuttle_runtime_version}}", features = ["postgres"] }