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
*.bak
### H2 databases
*.mv.db
*.trace.db
### SQLite databases
*.sqlite
*.sqlite-journal
@ -47,6 +43,5 @@ nbdist/
### Komga
/komga/src/main/resources/public/
/komga/artemis/
/komga/lucene/
/config-dir/
application-oauth2.yml

View file

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

View file

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