Open lqnhat97 opened 3 years ago
Seems simple enough, could a workaround be java -Dapp.worker.port:<customPort> -jar <worker>.jar
without the --port
?
In this case, it will take 2 ports: port 8080 as default and customPort
i'm confused, do you want it to run on 1 port or 2? if you override the default port with the desired value what do you need custom port for?
My issue is when I ran the worker with the command
java -jar <worker>.jar --port=<customPort>
, the sandbox will listen on customPort and port 8080 (default). I have checked the cli and found that the listener port useRequestServer(@Value("${app.worker.port:8080}")
, so I fixed the command likejava -Dapp.worker.port:<customPort> -jar <worker>.jar --port=<customPort>
to let the sandbox run on my customPort. It's quite inconvenience. Can you fix it ?