Skip to content

Commit

Permalink
apps.live: allow overriding of port
Browse files Browse the repository at this point in the history
If EMANOTE_PORT is set, it will set PORT to the value of it. Otherwise, it will use the value 7071
  • Loading branch information
MatthewCroughan committed Jan 9, 2022
1 parent 3a43306 commit e7272cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Expand Up @@ -20,9 +20,10 @@
apps."${system}" = {
live = rec {
type = "app";
# '' is required for escaping ${} in nix
script = pkgs.writers.writeBash "emanotePlutonomiconLiveReload.sh" ''
set -xe
export PORT=7071
export PORT="''${EMANOTE_PORT:-7071}"
${emanote.defaultPackage.${system}}/bin/emanote -L ./content
'';
program = builtins.toString script;
Expand Down

0 comments on commit e7272cb

Please sign in to comment.