Fix embedded static files on production builds

This commit is contained in:
Eli Ribble 2026-03-21 05:38:42 +00:00
parent 9cbce4ff14
commit a2c3f52ab4
No known key found for this signature in database
12 changed files with 209 additions and 3083 deletions

View file

@ -1,7 +1,15 @@
#!/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
# 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) && VERBOSE=1 ./nidus-sync -prod 2>&1 | tee nidus-sync.log
#
# 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