Browse Source

Replace command names

master
parent
commit
256e1e3018
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 4
      flake.nix

4
flake.nix

@ -10,12 +10,12 @@
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
myWeddingSiteDir = "$MY_WEDDING_SITE_DIR"; myWeddingSiteDir = "$MY_WEDDING_SITE_DIR";
myWeddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; myWeddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding";
myWeddingSiteBuild = pkgs.writeShellScriptBin "my-wedding-site-build" ''
myWeddingSiteBuild = pkgs.writeShellScriptBin "wedding-site-build" ''
pushd ${myWeddingSiteDir} > /dev/null && pushd ${myWeddingSiteDir} > /dev/null &&
${pkgs.hugo}/bin/hugo -v ; \ ${pkgs.hugo}/bin/hugo -v ; \
popd > /dev/null popd > /dev/null
''; '';
myWeddingSiteUpdate = pkgs.writeShellScriptBin "my-wedding-site-update" ''
myWeddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" ''
${pkgs.rsync}/bin/rsync -aP ${myWeddingSiteDir}/public/ ${myWeddingSiteTgt} ${pkgs.rsync}/bin/rsync -aP ${myWeddingSiteDir}/public/ ${myWeddingSiteTgt}
''; '';
in in

Loading…
Cancel
Save