This commit is contained in:
Michael Simard
2020-05-25 23:32:28 -05:00
parent ba9bfd5e6a
commit 676a55d2df
4 changed files with 27 additions and 22 deletions

View File

@@ -9,13 +9,13 @@ public func configure(_ app: Application) throws {
app.databases.use(.postgres(
hostname: Environment.get("DATABASE_HOST") ?? "localhost",
username: Environment.get("DATABASE_USERNAME") ?? "vapor_username",
password: Environment.get("DATABASE_PASSWORD") ?? "vapor_password",
database: Environment.get("DATABASE_NAME") ?? "vapor_database"
username: Environment.get("DATABASE_USERNAME") ?? "fanosphere",
password: Environment.get("DATABASE_PASSWORD") ?? "pw4fanosphere",
database: Environment.get("DATABASE_NAME") ?? "codmw"
), as: .psql)
app.migrations.add(CreateTodo())
app.migrations.add(CreateMatch())
// register routes
try routes(app)
}
}