Use DATABASE_URL from .env file
This commit is contained in:
parent
1ba6b0b647
commit
fcacae04b8
1
examples/actix_example/.env
Normal file
1
examples/actix_example/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
DATABASE_URL="mysql://root:@localhost/rocket_example"
|
@ -16,6 +16,7 @@ actix-http = "2"
|
|||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-files = "0.5"
|
actix-files = "0.5"
|
||||||
tera = "1.8.0"
|
tera = "1.8.0"
|
||||||
|
dotenv = "0.15"
|
||||||
|
|
||||||
# remove `path = ""` in your own project
|
# remove `path = ""` in your own project
|
||||||
sea-orm = { path = "../../", version = "^0.2", features = [
|
sea-orm = { path = "../../", version = "^0.2", features = [
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
type="text/css"
|
type="text/css"
|
||||||
/>
|
/>
|
||||||
<link rel="stylesheet" href="/static/css/normalize.css" />
|
<link rel="stylesheet" href="/static/css/normalize.css" />
|
||||||
<link rel="stylesheet" href="/css/skeleton.css" />
|
<link rel="stylesheet" href="/static/css/skeleton.css" />
|
||||||
<link rel="stylesheet" href="/static/css/style.css" />
|
<link rel="stylesheet" href="/static/css/style.css" />
|
||||||
<link rel="icon" type="image/png" href="/static/images/favicon.png" />
|
<link rel="icon" type="image/png" href="/static/images/favicon.png" />
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user