Add script for running output of "nix build"
This commit is contained in:
parent
2a3dbbdad3
commit
e2d4f917a0
1 changed files with 17 additions and 0 deletions
17
start-nix-built.sh
Executable file
17
start-nix-built.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/run/current-system/sw/bin/bash
|
||||||
|
# with MITM
|
||||||
|
# export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && MITM_PROXY=http://127.0.0.1:8080 ./nidus-sync 2>&1 | tee nidus-sync.log
|
||||||
|
#
|
||||||
|
# original recipe
|
||||||
|
#export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && ./nidus-sync 2>&1 | tee nidus-sync.log
|
||||||
|
|
||||||
|
# force production environment
|
||||||
|
# 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
|
||||||
|
export $(cat /var/run/secrets/nidus-dev-sync-env | xargs) && \
|
||||||
|
export $(cat .env | xargs) && \
|
||||||
|
./result/bin/nidus-sync -prod 2>&1
|
||||||
|
#
|
||||||
|
# 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue