Skip to content

Commit

Permalink
add local run guide
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhuang committed Aug 1, 2024
1 parent 1790e4a commit d64d89a
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@
```
-Dspring.config.additional-location={REAL_LOCATION}/largierj/largier-server/src/main/resources/application-dev.yml -Dspring.profiles.active=dev
```
```
## Run built pkg in local for Florian
```
cd {REAL_LOCATION_OF_PROJECT_PARENT}
mvn clean install
cd largier-server/target
/usr/bin/java -Dspring.config.additional-location={REAL_LOCATION_OF_PROJECT_PARENT}/largierj/Dev/application-dev-f.yml -Dspring.profiles.active=dev-f -jar largier-run.jar
```
16 changes: 16 additions & 0 deletions Dev/application-dev-f.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spring:
datasource:
url: jdbc:h2:file:/Users/florianrudin/Repos/largierj/db
h2:
console:
enabled: true
jwt:
base64-secret: VGhpcyUyMGlzJTIwQ2hhbnRhbCUyMExhcmdpZXIuY29t
token-validity-in-seconds: 3600
log:
path: ./logs
prefix: largier-dev
upload:
location: ./upload
logging:
config: /Users/florianrudin/Repos/largierj/support/logback-spring.xml
16 changes: 16 additions & 0 deletions Dev/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spring:
datasource:
url: jdbc:h2:file:/Users/huangyijie/dev/workspace/github/largierj/db
h2:
console:
enabled: true
jwt:
base64-secret: VGhpcyUyMGlzJTIwQ2hhbnRhbCUyMExhcmdpZXIuY29t
token-validity-in-seconds: 3600
log:
path: ./logs
prefix: largier-dev
upload:
location: ./upload
logging:
config: /Users/huangyijie/dev/workspace/github/largierj/support/logback-spring.xml
16 changes: 16 additions & 0 deletions largier-server/src/main/resources/application-dev-f.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
spring:
datasource:
url: jdbc:h2:file:/Users/florianrudin/Repos/largierj/db
h2:
console:
enabled: true
jwt:
base64-secret: VGhpcyUyMGlzJTIwQ2hhbnRhbCUyMExhcmdpZXIuY29t
token-validity-in-seconds: 3600
log:
path: ./logs
prefix: largier-dev
upload:
location: ./upload
logging:
config: /Users/florianrudin/Repos/largierj/support/logback-spring.xml

0 comments on commit d64d89a

Please sign in to comment.