Skip to content

Commit

Permalink
Modify default configuration file to prevent fails during LPVS servic…
Browse files Browse the repository at this point in the history
…e start (#207)

* fix: modify default configuration to prevent service launch fails

* fix: fix after review comment, remove unnecessary application exit
  • Loading branch information
m-rudyk authored Sep 8, 2023
1 parent b560674 commit c67c4bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.10</version>
<version>2.7.15</version>
</parent>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class GitHubWebhooksController {

private String GITHUB_SECRET;

@Autowired
ApplicationContext applicationContext;

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/lpvs/service/LPVSGitHubService.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public LPVSGitHubService(@Value("${" + GITHUB_LOGIN_PROP_NAME + "}") String GITH
}

@PostConstruct
@Profile("!test")
private void checks() throws Exception {
if (this.GITHUB_AUTH_TOKEN.isEmpty()) {
log.error(GITHUB_AUTH_TOKEN_ENV_VAR_NAME + "(" + GITHUB_AUTH_TOKEN_PROP_NAME + ") is not set.");
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ spring.datasource.url=jdbc:mysql://localhost:3306/lpvs
spring.datasource.username=
spring.datasource.password=

# Custom DB components name configuration
app.table.detectedLicenseName=detected_license
app.table.detectedLicenseSchema=lpvs
app.table.diffFileName=code_licenses
app.table.pullRequestsName=lpvs_pull_requests
app.table.queueName=queue

0 comments on commit c67c4bf

Please sign in to comment.