mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-02-17 06:36:25 +01:00
Updated Improve Performance of PGPainless CLI with Nailgun (markdown)
parent
84e250dffb
commit
b3e7bfc1fc
1 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,12 @@ Programs run in the server (which is implemented in Java), and are triggered by
|
|||
To use nailgun to increase the performance of `pgpainless-cli`, the first thing you need is a Java 8 installation.
|
||||
This is because nailgun uses features from Java 8, which were removed in later releases.
|
||||
|
||||
Futher, you need to compile PGPainless using Java 8 to get a compatible jar file.
|
||||
```shell
|
||||
$ JAVA_HOME=$JAVA8_HOME gradle assemble
|
||||
$ ls pgpainless-cli/build/libs/pgpainless-cli-XYZ-all.jar
|
||||
```
|
||||
|
||||
## Start the nailgun server
|
||||
|
||||
Simply execute the nailgun-server.jar on the Java 8 JVM:
|
||||
|
@ -15,7 +21,7 @@ Simply execute the nailgun-server.jar on the Java 8 JVM:
|
|||
$ $JAVA8_HOME/bin/java -jar nailgun-server.jar
|
||||
```
|
||||
|
||||
Next, load the pgpainless-cli-XYZ-all.jar:
|
||||
Next, load the freshly built pgpainless-cli-XYZ-all.jar:
|
||||
|
||||
```shell
|
||||
$ ng ng-cp /path/to/pgpainless-cli-XYZ-all.jar
|
||||
|
|
Loading…
Reference in a new issue