For some years now, I have been using Laravel Homestead to quickly build up a virtual machine with all I needed installed. But it seems to not quite get the love it needs, and I’m wondering if folks have moved on to a different environment or tool for their development.

  • chiisana@lemmy.chiisana.net
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    The industry by and large have moved on to containers, with docker being the entry point and eventually graduating to something larger and more orchestrated like k8s.

    You’d generally use a publisher container (I.e. php:latest), and then volume mount your code into it for development, and eventually baking your own image for deployment. Be mindful to not include secrets (API keys, passwords, etc.) and inject them via environment variables.

  • shnizmuffin@lemmy.inbutts.lol
    link
    fedilink
    English
    arrow-up
    0
    ·
    12 days ago

    Hey, you should take a look at how Laradock works. I install it as a submodule when I’m working on PHP applications. Slaps the shit out of Laravel Sail and keeps the core dependencies off my OS.

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    For development, I just run node on my system. I use a library called Nymph.js (that I developed) that runs on SQLite in development, then either MySQL or Postgres in production. It’s nice because I can sync my dev db with rsync when I need to test on a cloud machine, and db backups are really small and easy to manage (literally just copying a few files).