From a6269d1fe01b9b5f5438490d0dd6caf8d833c02a Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 8 May 2022 16:48:03 -0600 Subject: Cleanup and fix dev entrypoint target --- srv/default.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'srv/default.nix') diff --git a/srv/default.nix b/srv/default.nix index df54d84..42018ce 100644 --- a/srv/default.nix +++ b/srv/default.nix @@ -13,7 +13,6 @@ init = writeText "mediocre-blog-srv-init" '' export MEDIOCRE_BLOG_DATA_DIR="${config.dataDir}" - mkdir -p "${config.dataDir}" # mailing list export MEDIOCRE_BLOG_ML_SMTP_ADDR="${config.mlSMTPAddr}" @@ -28,11 +27,7 @@ export MEDIOCRE_BLOG_POW_SECRET="${config.powSecret}" # static proxy - if [ "${config.staticProxyURL}" == "" ]; then - export MEDIOCRE_BLOG_STATIC_DIR="${staticBuild}" - else - export MEDIOCRE_BLOG_STATIC_URL="${config.staticProxyURL}" - fi + export MEDIOCRE_BLOG_STATIC_DIR="${staticBuild}" # listening export MEDIOCRE_BLOG_LISTEN_PROTO="${config.listenProto}" @@ -43,14 +38,14 @@ pname = "mediocre-blog-srv"; version = "dev"; src = ./src; - vendorSha256 = "sha256-/F62WVkI50woo5J0xZOAn0g0WWkDna4wIBeVvbhAGzs="; + vendorSha256 = "sha256-MdjPrNSAAiqkAnJRIhMFTVQDKIPuDCHqRQFEtnoe1Cc="; # disable tests checkPhase = ''''; }; bin = writeScript "mediocre-blog-srv-bin" '' - #!${bash} + #!${bash}/bin/bash source ${init} exec ${build}/bin/mediocre-blog ''; -- cgit v1.2.3