Skip to content

Commit 0896a4f

Browse files
committed
source .env instead of .env.export
1 parent 7a136a3 commit 0896a4f

File tree

4 files changed

+10
-36
lines changed

4 files changed

+10
-36
lines changed

.env

+3
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ OUTPUT_PORT=7000
55
SYN_HOST=localhost
66
LOG_INFO=true
77
LOG_WARNINGS=true
8+
CONTROLS=http://localhost:5999/controls
9+
SCENES=http://localhost:5999/scenes
10+
VALUES=http://localhost:5999/values

.env.export

-10
This file was deleted.

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -182,23 +182,23 @@ i is the 0-based index of the type of control, in order of appearance in the Syn
182182
You can source the .env.export file to export the variables to your shell:
183183

184184
```bash
185-
source .env.export
185+
source .env
186186
```
187187

188188
This includes the shorthand variables:
189189

190190
```bash
191-
controls=http://localhost:5999/controls
192-
scenes=http://localhost:5999/scenes
193-
values=http://localhost:5999/values
191+
CONTROLS=http://localhost:5999/controls
192+
SCENES=http://localhost:5999/scenes
193+
VALUES=http://localhost:5999/values
194194
```
195195

196196
Which can be used like this:
197197

198198
```bash
199-
curl $controls/brightness/0.5
200-
curl $scenes/AlienCavern
201-
curl $values/syn_Presence
199+
curl $CONTROLS/brightness/0.5
200+
curl $SCENES/AlienCavern
201+
curl $VALUES/syn_Presence
202202
```
203203

204204
If you change the `.env` file, make sure to use:

scripts/export-env.js

-19
This file was deleted.

0 commit comments

Comments
 (0)