Skip to content

Commit 9a12eba

Browse files
committed
adding health check endpoints
1 parent 0929ea8 commit 9a12eba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

server/app.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ automatic_scaling:
99
env_variables:
1010
PG_DB_URI: $PG_DB_URI
1111

12-
health_check:
13-
enable_health_check: false
14-
1512
resources:
1613
cpu: 4
1714
memory_gb: 8

server/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ async fn main() -> Result<()> {
2929
info!("DB initialized");
3030

3131
let app = Router::new()
32+
.route("/readiness_check", get(|| async { "OK" }))
33+
.route("/liveness_check", get(|| async { "OK" }))
3234
.route("/build", post(build))
3335
.route("/deploy/:uuid", get(deploy))
3436
.route("/share/:id", get(share_get))

0 commit comments

Comments
 (0)