Skip to content

Commit cfbf5e1

Browse files
build: add more configuration data to the .env file
update .env.sample to support the new data and make the ddl-auto be set by an env variable
1 parent dabe3e6 commit cfbf5e1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ DATABASE_URL=<your-db-url>
22
DATABASE_USER=<your-db-user>
33
DATABASE_PASSWORD=<your-db-password>
44
BOOK_IMAGE_PATH=<path>
5+
JWT_TOKEN_SECRET=<secret>
6+
DDL_AUTO=<ddl-option>

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spring.config.import=optional:file:.env[.properties]
77
spring.datasource.url=${DATABASE_URL}
88
spring.datasource.username=${DATABASE_USER}
99
spring.datasource.password=${DATABASE_PASSWORD}
10-
spring.jpa.hibernate.ddl-auto=update
10+
spring.jpa.hibernate.ddl-auto=${DDL_AUTO:update}
1111

1212
spring.jpa.show-sql=true
1313
spring.jpa.properties.hibernate.format_sql=true

0 commit comments

Comments
 (0)