Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 3e5049d

Browse files
committed
update configuration files for environment variables and ignore settings
1 parent 9fb2fd6 commit 3e5049d

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ deploy/
2323
*.log
2424

2525
# Environment files
26-
.env
26+
deploy/.env
2727
*.env
2828

2929
# Documentation

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ build/
3131

3232
### VS Code ###
3333
.vscode/
34-
/deploy/.env
34+
/deploy/.env
35+
.env

src/main/resources/application.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
spring.application.name=commercify
22
server.port=6091
33
# Database configuration
4-
spring.datasource.url=jdbc:mysql://${DATABASE_HOST}:${DATABASE_PORT:3306}/${DATABASE_NAME:commercifydb}?createDatabaseIfNotExist=true
5-
spring.datasource.username=${DATABASE_USER}
6-
spring.datasource.password=${DATABASE_PASSWORD}
4+
spring.datasource.url=${SPRING_DATASOURCE_URL}
5+
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
6+
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
77
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
88
spring.jpa.hibernate.ddl-auto=none
99
# Migrations

0 commit comments

Comments
 (0)