Skip to content

Commit b1b77cf

Browse files
authored
Update README.md
1 parent 2b4779f commit b1b77cf

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Installation instructions
44

5-
As an open-source backend project, ivory-cloud requires the local installation of git, jdk, maven, etc., during the development process.
5+
As an open-source backend project, ivory-cloud requires the local installation of `git`, `jdk`, `maven`, etc., during the development process.
66

77
Fork the backend repository of the open-source cloud platform to your own GitHub account, then clone it to your local machine, for example:
88

@@ -30,3 +30,21 @@ mvn install
3030
```
3131
After the packaging is completed, you can find the `pkg` directory in the root directory of the project. It contains the jar package to be deployed.
3232
### Deploy backend projects
33+
Install a database such as ivorysql on your server and start it.
34+
Place the above jar package in your server, then edit [configuration file](./cloudnative/src/main/resources/application-native.yaml)
35+
Among them, 5432 is the port on which the ivorysql database runs; please modify it according to the actual situation.
36+
```
37+
datasource:
38+
druid:
39+
db-type: com.alibaba.druid.pool.DruidDataSource
40+
driver-class-name: org.postgresql.Driver
41+
url: jdbc:postgresql://127.0.0.1:5432/ivory
42+
username: ivorysql
43+
password: "ivory@123"
44+
```
45+
In the directory where the jar package is located, execute:
46+
47+
```
48+
nohup java -jar cloudservice-1.0-SNAPSHOT.jar > log_native 2>&1 &
49+
```
50+
cloudservice-1.0-SNAPSHOT.jar is the name of the jar package; please replace it according to the actual situation.

0 commit comments

Comments
 (0)