|
@ -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 |
|
|