Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We put .env variable to both repos (in refdistro it should be called settings.env). BASE_URL, VIRTUAL_HOST AND PUBLIC_URL inside should be populated with your computer IP adress.


stockmanagement
curl -o .env -L https://raw.githubusercontent.com/OpenLMIS/openlmis-ref-distro/master/settings-sample.env

...

Run start-local.sh and interrupt it’s run after logs starts falling down. Then type:
docker-compose up -d

Debugger:

To attach debugger to stockmanagement you need to:Go

  • go to ref-distro/docker-compose and at the end of stockmanagement container you want to listen to and specify port it will run on (in this case stockmanagement on port 1144)
    ports:
    - "1144:1144"

...

  • add this command line arguments:
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:1144
    to the environment.JAVA_OPTS property

  • in the upper right corner inside IntelliJ (or in the Run from the navbar) press Edit Configurations
    Add new configuration: Remote JVM Debug
    Set host for your IP adress and port you specified in paragraph 1