on master help sign in
Add dummy version for local builds
commit1224c36eb4007ad38789f10f0e609bea7958b3c4 authorTom Smalley <tfsmalley@gmail.com> dateFri 26 Oct 2018, 14:51 (8 years ago) parentefdc44c
1 file changed+3−2
default.nix+3−2
default.nix+3−2
@@ -338,10 +338,11 @@ in rec {
338338 (projectOut sys).passthru.__closureCompilerOptimizationLevel
339339 version;
340340 linuxExe = serverOn "x86_64-linux";
341+ dummyVersion = "Version number is only available for deployments";
341342 in projectOut system // {
342343 linuxExeConfigurable = linuxExe;
343− linuxExe = linuxExe (base + "/config");
344− exe = serverOn system (base + "/config");
344+ linuxExe = linuxExe (base + "/config") dummyVersion;
345+ exe = serverOn system (base + "/config") dummyVersion;
345346 server = args@{ hostName, adminEmail, routeHost, enableHttps, config, version }: let
346347 injectableConfig = builtins.filterSource (path: _: !(lib.hasPrefix (toString config + "/backend") (toString path))) config;
347348 in server (args // { exe = linuxExe injectableConfig version; });