Skip to content

Commit

Permalink
Shuttle migration (#6)
Browse files Browse the repository at this point in the history
* bump runtime version

* ignore shuttle specific artifacts

* deployment inclusion specification

* postbuild script for frontend

* change base url in config
  • Loading branch information
wyatt-avilla authored Jan 6, 2025
1 parent 565cf03 commit 24ede12
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ Cargo.lock

# wasm related
/frontend/dist/
.shuttle*
Secrets*.toml
9 changes: 7 additions & 2 deletions Shuttle.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
assets = [
[deploy]
include = [
".env",
"frontend/dist/*"
]

[build]
assets = [
"frontend/dist/*",
]
4 changes: 2 additions & 2 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ yew = "0.21.0"
log = "0.4.21"
env_logger = "0.11.3"
chrono = "0.4.38"
shuttle-actix-web = "0.46.0"
shuttle-runtime = "0.46.0"
shuttle-actix-web = "0.49"
shuttle-runtime = "0.49.0"
actix-cors = "0.7.0"
2 changes: 1 addition & 1 deletion config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub const ENV: Env = Env {
};

pub const ENDPOINT: Endpoint = Endpoint {
base: "https://feframe.shuttleapp.rs",
base: "https://feframe-wa5w.shuttle.app",
github: "/api/github",
lastfm: "/api/lastfm",
letterboxd: "/api/letterboxd",
Expand Down
4 changes: 4 additions & 0 deletions shuttle_postbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd frontend || exit
trunk build --release

0 comments on commit 24ede12

Please sign in to comment.