Skip to content

Commit

Permalink
Merge branch 'master' into assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiskg committed Dec 13, 2023
2 parents 7bcc979 + ee1517b commit baf16c2
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODE=service
PID_FOLDER=.
# console appender log file folder
LOG_FOLDER=/opt/logs/
# console appender file name
LOG_FILENAME=console.log
# console appender log file name
LOG_FILENAME=apollo-adminservice.console.log
# write application logs only to file appender
export LOG_APPENDERS=FILE
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public BizDBPropertySource(final ServerConfigRepository serverConfigRepository,
@PostConstruct
public void runSqlScript() throws Exception {
if (env.acceptsProfiles(Profiles.of("h2"))) {
Resource resource = new ClassPathResource("jpa/init.h2.sql");
Resource resource = new ClassPathResource("jpa/configdb.init.h2.sql");
if (resource.exists()) {
DatabasePopulatorUtils.execute(new ResourceDatabasePopulator(resource), dataSource);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
MODE=service
PID_FOLDER=.
# console appender log file folder
LOG_FOLDER=/opt/logs/100003171/
LOG_FOLDER=/opt/logs/
# console appender log file name
LOG_FILENAME=console.log
LOG_FILENAME=apollo-configservice.console.log
# write application logs only to file appender
export LOG_APPENDERS=FILE
1 change: 1 addition & 0 deletions apollo-portal/src/assembly/assembly-descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<includes>
<include>application-github.properties</include>
<include>apollo-env.properties</include>
<include>application.properties</include>
</includes>
</fileSet>
<!--artifact -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public PortalDBPropertySource(final ServerConfigRepository serverConfigRepositor
@PostConstruct
public void runSqlScript() throws Exception {
if (env.acceptsProfiles(Profiles.of("h2"))) {
Resource resource = new ClassPathResource("jpa/init.h2.sql");
Resource resource = new ClassPathResource("jpa/portaldb.init.h2.sql");
if (resource.exists()) {
DatabasePopulatorUtils.execute(new ResourceDatabasePopulator(resource), dataSource);
}
Expand Down
4 changes: 2 additions & 2 deletions apollo-portal/src/main/resources/apollo-portal.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
MODE=service
PID_FOLDER=.
# console appender log file folder
LOG_FOLDER=/opt/logs/100003173/
LOG_FOLDER=/opt/logs/
# console appender log file name
LOG_FILENAME=console.log
LOG_FILENAME=apollo-portal.console.log
# write application logs only to file appender
export LOG_APPENDERS=FILE
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
</developers>

<properties>
<revision>2.2.0-SNAPSHOT</revision>
<revision>2.2.0</revision>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<apollo-java.version>2.2.0-SNAPSHOT</apollo-java.version>
<apollo-java.version>2.2.0</apollo-java.version>
<spring-boot.version>2.7.11</spring-boot.version>
<spring-cloud.version>2021.0.5</spring-cloud.version>
<!-- sort by alphabet -->
Expand Down

0 comments on commit baf16c2

Please sign in to comment.