Add a .env file

This allows customizations on different machines, like my laptop vs my
desktop.
This commit is contained in:
Eli Ribble 2026-03-23 12:05:37 -07:00
parent 96237c7599
commit 3ae88f984a
No known key found for this signature in database
3 changed files with 13 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.env
.sass-cache/ .sass-cache/
cmd/geocode-test/geocode-test cmd/geocode-test/geocode-test
cmd/passwordgen/passwordgen cmd/passwordgen/passwordgen

View file

@ -1,9 +1,11 @@
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
# normal
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && BIND=127.0.0.1:9002 FLOGO_BIND=:9001 FLOGO_UPSTREAM=http://127.0.0.1:9001 VERBOSE=1 ../flogo/flogo -target .
# MITM proxy # MITM proxy
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && BIND=127.0.0.1:9001 FLOGO_BIND=:9000 FLOGO_UPSTREAM=http://127.0.0.1:9001 MITM_PROXY=http://127.0.0.1:8080 ../flogo/flogo -target . #MITM_PROXY=http://127.0.0.1:8080
# verbose # Flogo verbose
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && BIND=127.0.0.1:9001 FLOGO_BIND=:9000 FLOGO_UPSTREAM=http://127.0.0.1:9001 FLOGO_VERBOSE=1 ../flogo/flogo -target . #FLOGO_VERBOSE=1
# no TUI # No flogo TUI
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && BIND=127.0.0.1:9001 FLOGO_BIND=:9000 FLOGO_DISABLE_TUI=1 FLOGO_UPSTREAM=http://127.0.0.1:9001 ../flogo/flogo -target . #FLOGO_DISABLE_TUI=1
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) &&
export $(cat .env | xargs) && \
../flogo/flogo -target .

View file

@ -9,7 +9,9 @@
# export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync -prod 2>&1 | tee nidus-sync.log # export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync -prod 2>&1 | tee nidus-sync.log
# #
# force production environment, but with debug logging # force production environment, but with debug logging
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && VERBOSE=1 ./nidus-sync -prod 2>&1 | tee nidus-sync.log export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && \
export $(cat .env | xargs) && \
./nidus-sync -prod 2>&1 | tee nidus-sync.log
# #
# Use nix build output, force production environment # Use nix build output, force production environment
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./result/bin/nidus-sync -prod 2>&1 | tee nidus-sync.log #export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./result/bin/nidus-sync -prod 2>&1 | tee nidus-sync.log