build: use config-dir for local development

This commit is contained in:
Gauthier Roebroeck 2022-01-19 14:50:15 +08:00
parent d3daaf1f9c
commit 27d81b0ea6
3 changed files with 4 additions and 14 deletions

7
.gitignore vendored
View file

@ -13,10 +13,6 @@ node_modules
*.tmp *.tmp
*.bak *.bak
### H2 databases
*.mv.db
*.trace.db
### SQLite databases ### SQLite databases
*.sqlite *.sqlite
*.sqlite-journal *.sqlite-journal
@ -47,6 +43,5 @@ nbdist/
### Komga ### Komga
/komga/src/main/resources/public/ /komga/src/main/resources/public/
/komga/artemis/ /config-dir/
/komga/lucene/
application-oauth2.yml application-oauth2.yml

View file

@ -12,13 +12,8 @@ komga:
# delete-empty-collections: true # delete-empty-collections: true
# delete-empty-read-lists: true # delete-empty-read-lists: true
oauth2-account-creation: false oauth2-account-creation: false
spring: config-dir: ${rootDir}/config-dir
artemis:
embedded:
data-directory: ./artemis
logging: logging:
file:
name: komga-dev.log
level: level:
org.apache.activemq.audit.message: WARN org.apache.activemq.audit.message: WARN
org.gotson.komga: DEBUG org.gotson.komga: DEBUG

View file

@ -1,5 +1,5 @@
komga: komga:
database: database:
file: ./localdb.sqlite file: \${komga.config-dir}/localdb.sqlite
lucene: lucene:
data-directory: ./lucene/localdb data-directory: \${komga.config-dir}/lucene/localdb