docs: update DEVELOPING.md with profile changes

This commit is contained in:
Gauthier Roebroeck 2020-03-05 21:01:16 +08:00
parent ce50403a86
commit 2b1290dde7

View File

@ -19,11 +19,8 @@ Komga is composed of 2 projects:
### Spring profiles
Komga uses Spring Profiles extensively:
- `dev`: add more logging, disable periodic scanning
- `prod`: log rotation, periodic scanning
- `dev`: add more logging, disable periodic scanning, in-memory database
- `localdb`: a dev profile that stores the database in `./testdb`.
- `docker`: set default path for the docker image
- `flyway`: enable Flyway, the database migration tool. Included in `dev` and `prod`.
- `noflyway`: disable Flyway. Only useful when adding new entities and you want Hibernate to update the database for you.
- `generatesql`: used manually to write the SQL generated by Hibernate. Useful when adding new entities.
@ -39,7 +36,6 @@ Here is a list of useful tasks:
`bootRun` needs to be run with a profile or list of profiles, usually:
- `dev`: when testing with a blank database
- `dev,localdb`: when testing with an existing database
- `prod`: when testing prod-specific features
There are few ways you can run the task with a profile:
- `./gradlew bootRun --args='--spring.profiles.active=dev'`