Skip to content

Commit

Permalink
fix: bump shuttle to 0.51.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 committed Jan 10, 2025
1 parent abe016e commit a9f3d6a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion loco-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct GenerateResults {
rrgen: Vec<rrgen::GenResult>,
local_templates: Vec<PathBuf>,
}
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),
Expand Down
10 changes: 9 additions & 1 deletion loco-gen/src/templates/deployment/shuttle/config.t
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
2 changes: 1 addition & 1 deletion loco-gen/src/templates/deployment/shuttle/shuttle.t
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down

0 comments on commit a9f3d6a

Please sign in to comment.