1. 25 Mar, 2020 1 commit
  2. 21 Mar, 2020 1 commit
    • Nicolás Alvarez's avatar
      staticweb: don't copy timestamps in rsync · 2af08db8
      Nicolás Alvarez authored
      Turns out the previous commit didn't fully work; it seems rsync doesn't
      copy content because the content matches (--checksum), but still syncs the
      file timestamp (--times, implied by --archive), so files still get touched
      on every deploy and If-Modified-Since requests remain ineffective.
      
      If I *don't* sync the mtime, files that actually get transferred will
      still have the mtime changed, but to the time rsync wrote them on the
      server rather than the local file's mtime. Files that don't get transferred
      will stay as they are.
      
      I could keep using -a (--archive) and explicitly disable copying
      timestamps (--no-times). However, -a implies -rlptgoD, and most of those
      are actually pointless for us (we can't copy ownership, we have no device
      nodes, sockets or fifos). Instead, replace -a with -rlp (recursive,
      symlinks, permissions), which is all we need. The lack of -t should fix
      the timestamp-touching issue.
      2af08db8
  3. 17 Mar, 2020 1 commit
    • Nicolás Alvarez's avatar
      staticweb: avoid transferring unchanged files to the webserver · 8977fad0
      Nicolás Alvarez authored
      Since we're building websites from scratch on clean environments, even
      cloning the git repository every time, every file will have a recent
      modification timestamp. This means rsync will copy every file to the
      webserver even if it didn't actually change. Also, clients making
      conditional requests with If-Modified-Since will get the whole file
      rather than 304 Not Modified.
      
      For example, any tiny typo fix in kde.org will touch every page and image
      in it, and the hackergotchi images in planet.kde.org will have their
      modtime touched every hour.
      
      This commit adds -c / --checksum to the rsync command. It makes rsync
      calculate the hash of the local and remote file, and transfer it only if
      it actually changed, rather than only comparing size and modtime. That way
      if a file didn't change in the source git repository, or if the generation
      process created an file identical to the previous version, it will not be
      updated during deployment.
      8977fad0
  4. 16 Mar, 2020 1 commit
  5. 13 Mar, 2020 1 commit
  6. 12 Mar, 2020 3 commits
  7. 11 Mar, 2020 1 commit
  8. 10 Mar, 2020 4 commits
  9. 07 Mar, 2020 6 commits
  10. 05 Mar, 2020 1 commit
  11. 04 Mar, 2020 5 commits
  12. 28 Feb, 2020 1 commit
    • Ben Cooksley's avatar
      Switch /Craft/BinaryCache/ to the shorter /Craft/BC/ to help with path length... · 31613d5c
      Ben Cooksley authored
      Switch /Craft/BinaryCache/ to the shorter /Craft/BC/ to help with path length issues with QtWebEngine.
      As it turns out the QtWebEngine developers in their infinite wisdom fully resolve the path they've been unpacked to when running commands.
      This defeats the normal path shortening mechanisms used by Craft and causes the Windows builds to fail due to the commands being too long for Windows to handle
      31613d5c
  13. 27 Feb, 2020 1 commit
  14. 26 Feb, 2020 1 commit
  15. 20 Feb, 2020 2 commits
  16. 19 Feb, 2020 3 commits
  17. 13 Feb, 2020 2 commits
  18. 12 Feb, 2020 1 commit
  19. 11 Feb, 2020 1 commit
  20. 10 Feb, 2020 2 commits
  21. 08 Feb, 2020 1 commit