init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user