Skip to content

Commit ddd5083

Browse files
committed
use dotenv template file so .env is not tracked
Signed-off-by: reubenmiller <[email protected]>
1 parent 19ad409 commit ddd5083

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
# dotenv files
7+
.env
8+
69
# C extensions
710
*.so
811

opcua-solution/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ git clone https://github.com/thin-edge/thin-edge.io_examples
3030
cd thin_edge.io_examples/opcua-solution
3131
```
3232

33+
Copy the environment template file `env.template` to produce a custom `.env` file. This will container your secrets so don't commit it to the repository!
34+
35+
```bash
36+
# Linux/MacOS/WSL
37+
cp --no-clobber env.template .env
38+
39+
# Windows (powershell)
40+
if (!(Test-Path .env)) { Copy-Item env.template .env }
41+
```
42+
3343
Modify the values within the .env file. Make espacially sure that you have an proper device ID for thin-edge.io. The baseUrl should be without leading https://.
3444
3545
```bash
File renamed without changes.

0 commit comments

Comments
 (0)