Use DATABASE_URL from .env file

This commit is contained in:
Sam Samai 2021-09-12 11:56:51 +10:00
parent 1ba6b0b647
commit fcacae04b8
3 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
DATABASE_URL="mysql://root:@localhost/rocket_example"

View File

@ -16,6 +16,7 @@ actix-http = "2"
actix-web = "3"
actix-files = "0.5"
tera = "1.8.0"
dotenv = "0.15"
# remove `path = ""` in your own project
sea-orm = { path = "../../", version = "^0.2", features = [

View File

@ -13,7 +13,7 @@
type="text/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="icon" type="image/png" href="/static/images/favicon.png" />
</head>