change port
This commit is contained in:
Binary file not shown.
@@ -10,9 +10,6 @@ public func configure(_ app: Application) throws {
|
||||
app.middleware.use(FileMiddleware(publicDirectory: app.directory.publicDirectory))
|
||||
app.middleware.use(ErrorMiddleware.default(environment: app.environment))
|
||||
|
||||
//port
|
||||
app.http.server.configuration.port = 8080
|
||||
|
||||
//routes
|
||||
try routes(app)
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ services:
|
||||
environment:
|
||||
<<: *shared_environment
|
||||
ports:
|
||||
- '8080:8080'
|
||||
- '8888:8888'
|
||||
# user: '0' # uncomment to run as root for testing purposes even though Dockerfile defines 'vapor' user.
|
||||
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"]
|
||||
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8888"]
|
||||
|
||||
Reference in New Issue
Block a user