• dan@upvote.au
    link
    fedilink
    arrow-up
    4
    ·
    9 months ago

    For some of my sites, I still build on my PC and rsync the build directory across. I’ve been meaning to set up Gitlab or something similar and configure automated deployments.

    • amazing_stories@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      This is what I do because my sites aren’t complicated enough to warrant a build system. Personally I think most websites out there are over-engineered. Example: a Discord friend made a React site that displays stats from a gaming server. It looks nice, but you literally can’t hyperlink to any of the data, it can only be loaded dynamically and only looks coherent on a phone in portrait mode. There are a lot of people following trends (some good trends) but without really thinking about why.

      • dan@upvote.au
        link
        fedilink
        arrow-up
        6
        ·
        9 months ago

        I’m starting to like the htmx model a lot. Server-rendered app that uses HTML attributes to configure the dynamic bits. Don’t have to write much JS (or any in some cases).

    • RonSijm@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Yea, I wasn’t saying it’s always bad in every scenario - but we used to have this kinda deployment in a professional company. It’s pretty bad if this is still how you’re doing it like this in an enterprise scenarios.

      But for a personal project, it’s alrightish. But yea, there are easier setups. For example configuring an automated deployed from Github/Gitlab. You can check out other peoples’ deployment config, since all that stuff is part of the repos, in the .github folder. So probably all you have to do is find a project that’s similar to yours, like “static file upload for an sftp” - and copypaste the script to your own repo.

      (for example: a script that publishes a website to github pages)