mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
cleanup profiles
This commit is contained in:
parent
5c153bf539
commit
fbb93b7266
4 changed files with 15 additions and 9 deletions
|
|
@ -4,21 +4,15 @@ import org.gotson.komga.infrastructure.configuration.KomgaProperties
|
|||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.boot.runApplication
|
||||
import org.springframework.context.annotation.Configuration
|
||||
import org.springframework.context.annotation.Profile
|
||||
import org.springframework.scheduling.annotation.EnableScheduling
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties(
|
||||
KomgaProperties::class
|
||||
)
|
||||
@EnableScheduling
|
||||
class Application
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<Application>(*args)
|
||||
}
|
||||
|
||||
@Profile("!test")
|
||||
@Configuration
|
||||
@EnableScheduling
|
||||
class SchedulingConfiguration
|
||||
|
|
@ -8,7 +8,7 @@ import springfox.documentation.spi.DocumentationType
|
|||
import springfox.documentation.spring.web.plugins.Docket
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2
|
||||
|
||||
@Profile("!test")
|
||||
@Profile("dev", "prod")
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
class SwaggerConfiguration {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import org.springframework.stereotype.Controller
|
|||
|
||||
private val logger = KotlinLogging.logger {}
|
||||
|
||||
@Profile("!test")
|
||||
@Profile("dev", "prod")
|
||||
@Controller
|
||||
class RootScannerController(
|
||||
private val libraryManager: LibraryManager,
|
||||
|
|
|
|||
12
komga/src/main/resources/application-generatesql.yml
Normal file
12
komga/src/main/resources/application-generatesql.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
spring:
|
||||
flyway:
|
||||
enabled: false
|
||||
jpa:
|
||||
properties:
|
||||
javax:
|
||||
persistence:
|
||||
schema-generation:
|
||||
create-source: metadata
|
||||
scripts:
|
||||
action: create
|
||||
create-target: build/generated/ddl_jpa_creation.sql
|
||||
Loading…
Reference in a new issue