Set environment

This commit is contained in:
Christoph Hagen 2021-12-09 14:47:18 +01:00
parent 577a60c1d1
commit 02e91cce53

View File

@ -4,6 +4,10 @@ var database: Database!
// configures your application // configures your application
public func configure(_ app: Application) throws { public func configure(_ app: Application) throws {
// Set target environment
app.environment = .development
// serve files from /Public folder // serve files from /Public folder
app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory)) app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))