-
Notifications
You must be signed in to change notification settings - Fork 0
Enable dev profile startup. #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this file here |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package com.statusneo.vms.service; | ||
|
|
||
| import com.statusneo.vms.model.Email; | ||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
| import org.springframework.context.annotation.Profile; | ||
| import org.springframework.stereotype.Service; | ||
|
|
||
| @Service | ||
| @Profile("dev") | ||
| public class DevEmailService implements EmailService { | ||
|
|
||
| private static final Logger log = | ||
| LoggerFactory.getLogger(DevEmailService.class); | ||
|
|
||
| @Override | ||
| public boolean sendEmail(Email email) { | ||
| log.info("[DEV EMAIL MOCK] Email payload: {}", email); | ||
| return true; | ||
| } | ||
| } |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use .properties, the other files are .yml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # =============================== | ||
| # DEV PROFILE CONFIGURATION | ||
| # =============================== | ||
|
|
||
| # Disable Docker Compose (important) | ||
| spring.docker.compose.enabled=false | ||
|
|
||
| # Server | ||
| server.port=8080 | ||
|
|
||
| # ------------------------------- | ||
| # Database (SQLite for dev) | ||
| # ------------------------------- | ||
| spring.datasource.url=jdbc:sqlite:dev.db | ||
| spring.datasource.driver-class-name=org.sqlite.JDBC | ||
| spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect | ||
| spring.jpa.hibernate.ddl-auto=update | ||
| spring.jpa.show-sql=true | ||
|
|
||
| # ------------------------------- | ||
| # Security (Disable Azure AD for dev) | ||
| # ------------------------------- | ||
| spring.security.oauth2.client.registration.azure.enabled=false | ||
| spring.security.oauth2.resourceserver.jwt.enabled=false | ||
|
|
||
| # ------------------------------- | ||
| # Logging | ||
| # ------------------------------- | ||
| logging.level.root=INFO | ||
| logging.level.org.springframework.security=DEBUG | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this needed? |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't touch this file. Should be sufficient to disable Docker support.