|
@ -10,6 +10,9 @@ |
|
|
let pkgs = nixpkgs.legacyPackages.${system}; |
|
|
let pkgs = nixpkgs.legacyPackages.${system}; |
|
|
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; |
|
|
weddingSiteDir = "$HOME/.local/source/wedding-site/public/"; |
|
|
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; |
|
|
weddingSiteTgt = "ubuntu@chrishayward.xyz:/var/www/wedding"; |
|
|
|
|
|
weddingSiteBuild = pkgs.writeShellScriptBind "wedding-site-build" '' |
|
|
|
|
|
pushd ${weddingSiteDir}../ && ${pkgs.hugo}/bin/hugo -v && popd |
|
|
|
|
|
''; |
|
|
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' |
|
|
weddingSiteUpdate = pkgs.writeShellScriptBin "wedding-site-update" '' |
|
|
${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt} |
|
|
${pkgs.rsync}/bin/rsync -aP ${weddingSiteDir} ${weddingSiteTgt} |
|
|
''; |
|
|
''; |
|
|