change port

This commit is contained in:
2023-03-11 22:53:02 -08:00
parent 291b224d97
commit 3a22ce5770
3 changed files with 2 additions and 5 deletions

View File

@@ -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)
}

View File

@@ -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"]