Set environment
This commit is contained in:
parent
577a60c1d1
commit
02e91cce53
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user