Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b8ee93

Browse files
author
FalkWolsky
committed
Updating Readme Files for API-Service and Node-Service 2
1 parentaba5869 commit4b8ee93

File tree

5 files changed

+15
-100
lines changed

5 files changed

+15
-100
lines changed

‎.vscode/settings.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"activityBar.background":"#2A3012",
44
"titleBar.activeBackground":"#3B431A",
55
"titleBar.activeForeground":"#F9FAF2"
6-
}
6+
},
7+
"java.debug.settings.onBuildFailureProceed":true
78
}

‎server/api-service/README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,25 @@ The contents should look like this:
5656
}
5757
```
5858

59+
Important is here the command -Dspring.profiles.active= - as it is responsible for the selection of the right apllication settings file too.
60+
61+
##Start the debug locally
62+
63+
Make sure that the apllication settings file contains the full local configuration you need. The apllication settings file is named application-\<profile>.yaml and reside in server/api-service/lowcoder-server/src/main/resources. The profile relates to your setting in the launch file. For example: -Dspring.profiles.active=lowcoder would make sure, lowcoder seeks the right config at application-lowcoder.yaml
64+
65+
Navigate to the file server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/ServerApplication.java
66+
This is the main class. Now you can use the IDE to "run" it or "debug it".
67+
5968
##Build and start the Lowcoder server jar
6069

6170
1. Clone Lowcoder repository
6271
2. Next, execute the following commands in sequence
6372

6473
```shell
6574
cd server/api-service
75+
6676
mvn clean package
77+
6778
java -Dpf4j.mode=development -Dspring.profiles.active=lowcoder -Dpf4j.pluginsDir=lowcoder-plugins -jar lowcoder-server/target/lowcoder-api-service.jar
6879
```
6980

‎server/api-service/lowcoder-server/src/main/resources/application-debug.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
data:
33
mongodb:
44
authentication-database:admin
5-
uri:"mongodb://lowcoder:secret123@127.0.0.1:27017/lowcoder?authSource=admin"
5+
uri:"mongodb://localhost:27017/lowcoder"
66
redis:
77
url:"redis://127.0.0.1:6379"
88

‎server/api-service/lowcoder-server/src/main/resources/application-lowcoder.yml‎

Lines changed: 0 additions & 97 deletions
This file was deleted.

‎server/api-service/lowcoder-server/src/main/resources/application.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
mongodb:
1212
authentication-database:admin
1313
auto-index-creation:false
14-
uri:${LOWCODER_MONGODB_URL:mongodb://lowcoder:secret123@127.0.0.1:27017/lowcoder?authSource=admin}
14+
uri:${LOWCODER_MONGODB_URL:mongodb://lowcoder:secret123@localhost:27017/lowcoder?retryWrites=true&loadBalanced=false&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-256}
1515
redis:
1616
url:${LOWCODER_REDIS_URL:redis://localhost:6379}
1717
main:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp