chore(backend): local-path-configs (#1594)
This commit is contained in:
@@ -54,6 +54,7 @@ storage paths. The common backend loop is:
|
||||
cd backend
|
||||
just run
|
||||
```
|
||||
Where [application-dev.yaml](./src/main/resources/application-dev.yaml) is the default configuration file for development.
|
||||
|
||||
If you need a different Spring profile:
|
||||
|
||||
@@ -64,6 +65,13 @@ just run profile=local
|
||||
Use the repo-level guide in [../DEVELOPMENT.md](../DEVELOPMENT.md) for the full Docker stack, MariaDB
|
||||
setup, and cross-project local workflows.
|
||||
|
||||
### IDE
|
||||
|
||||
**Spring Boot:** Active Profile = `dev`,
|
||||
Working Directory = `backend/`
|
||||
|
||||
**Gradle:** `bootRun --args="--spring.profiles.active=dev"`
|
||||
|
||||
## Build and Test
|
||||
|
||||
```bash
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# application-dev.yml - development-specific settings
|
||||
app:
|
||||
path-config: ${APP_PATH_CONFIG:../shared/data}
|
||||
bookdrop-folder: ${APP_BOOKDROP_FOLDER:../shared/bookdrop}
|
||||
spring:
|
||||
datasource:
|
||||
url: ${DATABASE_URL:jdbc:mariadb://localhost:3366/grimmory?createDatabaseIfNotExist=true&connectionTimeZone=UTC&forceConnectionTimeZoneToSession=true}
|
||||
username: ${DATABASE_USERNAME:grimmory}
|
||||
password: ${DATABASE_PASSWORD:grimmory}
|
||||
@@ -1,6 +1,6 @@
|
||||
app:
|
||||
path-config: '/app/data'
|
||||
bookdrop-folder: '/bookdrop'
|
||||
path-config: ${APP_PATH_CONFIG:/app/data}
|
||||
bookdrop-folder: ${APP_BOOKDROP_FOLDER:/bookdrop}
|
||||
api-docs:
|
||||
enabled: ${API_DOCS_ENABLED:false}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user