Skip to content

Commit 75d4cb2

Browse files
authored
Merge pull request #10 from czhangzhang/IVYC_REL_4_STABLE
readme
2 parents df6348b + b1b77cf commit 75d4cb2

1 file changed

Lines changed: 50 additions & 2 deletions

File tree

README.md

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,50 @@
1-
# ivory-cloud
2-
IvorySQL management platform. Database lifecycle management, including databases and commonly used tools.
1+
# Installation
2+
3+
## Installation instructions
4+
5+
As an open-source backend project, ivory-cloud requires the local installation of `git`, `jdk`, `maven`, etc., during the development process.
6+
7+
Fork the backend repository of the open-source cloud platform to your own GitHub account, then clone it to your local machine, for example:
8+
9+
```sh
10+
YOUR_GITHUB_UN="<your GitHub username>"
11+
git clone "git@github.com:${YOUR_GITHUB_UN}/ivory-cloud.git"
12+
```
13+
14+
Enter the project root directory:
15+
16+
```
17+
cd ivory-cloud
18+
```
19+
20+
21+
## Deployment
22+
23+
### Compile and build
24+
25+
Maven:Maven configuration is required,After configuration, execute the following command:
26+
27+
```
28+
mvn clean
29+
mvn install
30+
```
31+
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.
32+
### 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)