Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd261ad4

Browse files
committed
updated
1 parent1e14860 commitd261ad4

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

‎.env‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ POSTGRES_PASSWORD=password123
55
POSTGRES_DB=rust_sqlx
66

77
DATABASE_URL=postgresql://admin:password123@localhost:6500/rust_sqlx?schema=public
8+
9+
PGADMIN_DEFAULT_EMAIL=admin@admin.com
10+
PGADMIN_DEFAULT_PASSWORD=password123

‎docker-compose.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,12 @@ services:
99
-progresDB:/data/postgres
1010
env_file:
1111
-./.env
12+
pgAdmin:
13+
image:dpage/pgadmin4
14+
container_name:pgAdmin
15+
env_file:
16+
-./.env
17+
ports:
18+
-"5050:80"
1219
volumes:
1320
progresDB:

‎src/handler.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde_json::json;
99

1010
#[get("/healthchecker")]
1111
asyncfnhealth_checker_handler() ->implResponder{
12-
constMESSAGE:&str ="Build Simple CRUD API with Rust, SQLX, and Actix Web";
12+
constMESSAGE:&str ="Build Simple CRUD API with Rust, SQLX,Postgres,and Actix Web";
1313

1414
HttpResponse::Ok().json(json!({"status":"success","message":MESSAGE}))
1515
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp