Skip to content

Commit

Permalink
improving debug instructions for back end (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvince2 authored May 6, 2024
1 parent b443e79 commit 56d1d42
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,24 @@ If you don't intend to run the backend with a debugger, you can simply kick off
./hmiServerDev.sh start local run
```

If you are going to run the server using the Intellij / VSCode debugger, the first step is to decrypt the `application-secrets.properties.encrypted` file:
If you are going to run the server using the Intellij / VSCode debugger, you can run just the required containers and handle decryption with the following command
```shell
./hmiServerDev.sh start local
```

If you're looking to just decrypt or encrypt secrets you can run:

```shell
./hmiServerDev.sh decrypt
```
or
```shell
./hmiServerDev.sh encrypt
```

If running decrypt, you'll see the contents of `application-secrets.properties.encrypted` decrypted to plain text.
There should now be a `application-secrets.properties` file in the `packages/server/src/main/resources` dir.
If running encrypt, `application-secrets.properties`'s content will be encrypted into the *.encrypted file.

<details>
<summary><b>Debugging the Server in IntelliJ</b></summary>
Expand Down

0 comments on commit 56d1d42

Please sign in to comment.