Tag: debugging

  • Using ddev for local PHP development

    For me, one of the discoveries of 2024, has been ddev, a tool to manage PHP (and other) environments, based on Docker images.

    ddev logo
    Docker-based PHP development environments.

    In the last months I have been very happy using this project. It allows me to work locally on my source files and assets while at the same time have a specific environment with the exact server configuration that I need.

    Let me sum up some cases where it really came in a handy:

    • I ran into ddev for the first time when trying out a sample project for craft cms. The instructions to get the project up and running were surprisingly concise:
    git clone https://github.com/craftcms/europa-museum.git
    cd europa-museum
    ddev start
    ddev craft db/restore seed.sql
    • Converting an existing WordPress setup? Just run ddev config and ddev start.
    • Pull in a database dump from production? Configure a provider (ok that’s a little bit more work if you’re not on one of the predefined hosting providers)
    • want to add an extra container, say ElasticSearch? no problem.
    • Want to inspect the database? I run ddev sequelace and I’m in the database, editing the data.
    • run ddev mailpit and see the mails that have been sent out, in a Gmail like UI, or download them as a PNG screenshot
    • Boot that old Magento shop? Set the right PHP version, composer version, mysql version, run some terminal commands with ddev ssh and we’re up and running.
    • importing a database throws an error Unknown collation utf8mb4_0900_ai_ci? just switch from mariadb to mysql, run ddev restart and import again.
    • Want to run PHP with Xdebug? just drop an xdebug.ini in the correct config directory
    • I’m working on a Django setup, with extra startup scripts, an MQTT client and a Nuxt/Vue frontend and I hope to find the time to configure that for ddev as well. That would mean that starting ddev starts the full stack, all on the right ports and the paths mapped correctly

    I guess it’s clear that I’m excited about this addition to my toolchain.

    I’ve always been running Apache, MySQL, mkcert, MailHog through homebrew. And while that served my needs, I had to reconfigure quite a lot every time I ran brew upgrade.


    PS: last week I sent a toot at @atpfm suggesting ddev as a solution for Marco’s work on Overcast. I was happy to hear Casey read/butcher my name on the podcast ๐Ÿ˜„.

  • NetNewsWire was not updating my RSS feed

    NetNewsWire is having trouble refreshing my RSS feed, both on Mac desktop (6.1.8) and iOS (6.1.5 Build 6135).

    • I tested with an alternative RSS reader: Unread, which updates the feed fine.
    • I double checked my caching and expiration headers, which also appear ok.
    • I went through the log files and saw many entries for Unread and some for Google bot (hello ๐Ÿ‘‹)
    • I removed the feed from NNW and re-added it, but no success…

    I’m tempted to try and build the desktop app from source, since the source is available on Github, but that will require some extra free time.

    UPDATE 2025.01.02: I installed the TestFlight build (6.1.6 6141) and the issue persists.

    UPDATE 2025.01.03: TestFlight build 6.1.6 6142 installed overnight and the issue is fixed ๐ŸŽ‰! Now waiting for the next desktop release.