Compare commits
2 Commits
eaf6e277cf
...
b80e346bb3
Author | SHA1 | Date |
---|---|---|
Rajitha Kumara | b80e346bb3 | 1 year ago |
Rajitha Kumara | 0c19b80891 | 1 year ago |
@ -0,0 +1,31 @@
|
|||||||
|
<!-- Assemble migration-token-validator server -->
|
||||||
|
<assembly>
|
||||||
|
<id>bin</id>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<formats>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/bin</outputDirectory>
|
||||||
|
<directory>${project.basedir}/src/main/bin</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>${project.basedir}/src/main/assembly</directory>
|
||||||
|
<outputDirectory>/logs</outputDirectory>
|
||||||
|
<directoryMode>0775</directoryMode>
|
||||||
|
<excludes>
|
||||||
|
<exclude>*/**</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
<files>
|
||||||
|
<file>
|
||||||
|
<outputDirectory>/bin</outputDirectory>
|
||||||
|
<destName>${project.artifactId}.jar</destName>
|
||||||
|
<source>${project.build.directory}/${project.artifactId}-${project.version}.jar</source>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
</assembly>
|
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
value_port='8081'
|
||||||
|
value_db_url='jdbc:mysql://localhost:3306/EN_MI'
|
||||||
|
value_db_username='root'
|
||||||
|
value_db_password='root'
|
||||||
|
|
||||||
|
property_port='--server.port='
|
||||||
|
property_db_url='--spring.datasource.url='
|
||||||
|
property_db_username='--spring.datasource.username='
|
||||||
|
property_db_password='--spring.datasource.password='
|
||||||
|
property_log_path='--logging.file.path='
|
||||||
|
|
||||||
|
configs=($property_port$value_port \
|
||||||
|
$property_db_url$value_db_url \
|
||||||
|
$property_db_username$value_db_username \
|
||||||
|
$property_db_password$value_db_password)
|
||||||
|
|
||||||
|
for config in "${configs[@]}"; do
|
||||||
|
config_str="${config_str} ${config}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# starting the validation sever
|
||||||
|
java -jar migration-token-validator.jar "$config_str"
|
@ -1,7 +1,9 @@
|
|||||||
server.port = 3001
|
server.port=8081
|
||||||
spring.jpa.hibernate.ddl-auto=none
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
|
||||||
spring.datasource.url=jdbc:mysql://localhost:3306/EN_MI
|
spring.datasource.url=jdbc:mysql://localhost:3306/EN_MI
|
||||||
spring.datasource.username=root
|
spring.datasource.username=root
|
||||||
spring.datasource.password=root
|
spring.datasource.password=root
|
||||||
spring.jackson.property-naming-strategy=SNAKE_CASE
|
spring.jackson.property-naming-strategy=SNAKE_CASE
|
||||||
|
logging.file.name=../logs/validator.log
|
||||||
|
spring.logging.file.max-history=5
|
@ -0,0 +1,8 @@
|
|||||||
|
__ __ _ _ _ _______ _ __ __ _ _ _ _
|
||||||
|
| \/ (_) | | (_) |__ __| | | \ \ / / | (_) | | | |
|
||||||
|
| \ / |_ __ _ _ __ __ _| |_ _ ___ _ __ | | ___ | | _____ _ __ \ \ / /_ _| |_ __| | __ _| |_ ___ _ __
|
||||||
|
| |\/| | |/ _` | '__/ _` | __| |/ _ \| '_ \ | |/ _ \| |/ / _ \ '_ \ \ \/ / _` | | |/ _` |/ _` | __/ _ \| '__|
|
||||||
|
| | | | | (_| | | | (_| | |_| | (_) | | | | | | (_) | < __/ | | | \ / (_| | | | (_| | (_| | || (_) | |
|
||||||
|
|_| |_|_|\__, |_| \__,_|\__|_|\___/|_| |_| |_|\___/|_|\_\___|_| |_| \/ \__,_|_|_|\__,_|\__,_|\__\___/|_|
|
||||||
|
__/ |
|
||||||
|
|___/
|
Loading…
Reference in new issue