diff --git a/Jenkinsfile b/Jenkinsfile index 6c1f3f8..1fd40f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } stage("Deploy jar") { steps { - sh "docker compose up -d" + sh "docker compose up --build -d" } } } diff --git a/src/Application.kt b/src/Application.kt index 3846790..d186866 100644 --- a/src/Application.kt +++ b/src/Application.kt @@ -16,19 +16,6 @@ fun main(args: Array): Unit = io.ktor.server.netty.EngineMain.main(args) @Suppress("unused") // Referenced in application.conf @kotlin.jvm.JvmOverloads fun Application.module(testing: Boolean = false) { - install(CORS) { - method(HttpMethod.Options) - method(HttpMethod.Post) - method(HttpMethod.Put) - method(HttpMethod.Delete) - method(HttpMethod.Patch) - header(HttpHeaders.Authorization) - header(HttpHeaders.Accept) - header(HttpHeaders.ContentType) - allowCredentials = true - anyHost() // @TODO: Don't do this in production if possible. Try to limit it. - } - install(WebSockets) { pingPeriod = Duration.ofSeconds(15) timeout = Duration.ofSeconds(15)