Skip to content

Commit 24ede12

Browse files
authored
Shuttle migration (#6)
* bump runtime version * ignore shuttle specific artifacts * deployment inclusion specification * postbuild script for frontend * change base url in config
1 parent 565cf03 commit 24ede12

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ Cargo.lock
2222

2323
# wasm related
2424
/frontend/dist/
25+
.shuttle*
26+
Secrets*.toml

Shuttle.toml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
assets = [
1+
[deploy]
2+
include = [
23
".env",
3-
"frontend/dist/*"
4+
]
5+
6+
[build]
7+
assets = [
8+
"frontend/dist/*",
49
]

backend/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ yew = "0.21.0"
2222
log = "0.4.21"
2323
env_logger = "0.11.3"
2424
chrono = "0.4.38"
25-
shuttle-actix-web = "0.46.0"
26-
shuttle-runtime = "0.46.0"
25+
shuttle-actix-web = "0.49"
26+
shuttle-runtime = "0.49.0"
2727
actix-cors = "0.7.0"

config/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const ENV: Env = Env {
1515
};
1616

1717
pub const ENDPOINT: Endpoint = Endpoint {
18-
base: "https://feframe.shuttleapp.rs",
18+
base: "https://feframe-wa5w.shuttle.app",
1919
github: "/api/github",
2020
lastfm: "/api/lastfm",
2121
letterboxd: "/api/letterboxd",

shuttle_postbuild.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
cd frontend || exit
4+
trunk build --release

0 commit comments

Comments
 (0)