mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
Add folder for bin files after build and add README.md file
This commit is contained in:
61
web/documentserver-example/java/README.md
Normal file
61
web/documentserver-example/java/README.md
Normal file
@ -0,0 +1,61 @@
|
||||
## Build instruction
|
||||
|
||||
At first, You need to install `oracle-java8-installer`
|
||||
|
||||
```
|
||||
sudo add-apt-repository ppa:webupd8team/java
|
||||
sudo apt-get update
|
||||
sudo apt-get install oracle-java8-installer
|
||||
```
|
||||
|
||||
Edit the **settings.properties** configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed
|
||||
|
||||
```
|
||||
nano src/main/resources/settings.properties
|
||||
```
|
||||
|
||||
Edit the following lines:
|
||||
|
||||
```
|
||||
files.docservice.url.converter=https://documentserver/ConvertService.ashx
|
||||
files.docservice.url.tempstorage=https://documentserver/ResourceService.ashx
|
||||
files.docservice.url.api=https://documentserver/web-apps/apps/api/documents/api.js
|
||||
files.docservice.url.preloader=https://documentserver/web-apps/apps/api/documents/cache-scripts.html
|
||||
```
|
||||
|
||||
Install Maven:
|
||||
|
||||
```
|
||||
apt-get install maven
|
||||
```
|
||||
|
||||
And build:
|
||||
|
||||
```
|
||||
mvn package
|
||||
```
|
||||
|
||||
After it, all bin files will be passed to `./target` folder
|
||||
|
||||
## Build from docker
|
||||
Edit the **settings.properties** configuration file. Specify the name of your local server with the ONLYOFFICE Document Server installed
|
||||
|
||||
```
|
||||
nano src/main/resources/settings.properties
|
||||
```
|
||||
|
||||
Edit the following lines. You need to change `documentserver` to your documentserver:
|
||||
|
||||
```
|
||||
files.docservice.url.converter=https://documentserver/ConvertService.ashx
|
||||
files.docservice.url.tempstorage=https://documentserver/ResourceService.ashx
|
||||
files.docservice.url.api=https://documentserver/web-apps/apps/api/documents/api.js
|
||||
files.docservice.url.preloader=https://documentserver/web-apps/apps/api/documents/cache-scripts.html
|
||||
|
||||
```
|
||||
Run next command in java example directory:
|
||||
```
|
||||
docker build . -t java-example
|
||||
docker run -it -v $PWD/target:/java/target java-example
|
||||
```
|
||||
After it, all bin files will be passed to `./target` folder
|
||||
Reference in New Issue
Block a user