I usually connect with my server via ssh in a terminal and run basic commands. What's a better, more efficient and modern way of doing that? Especially considering ai and documentation along the way? I wonder if there's a better approach than "connect from remote and act local". Is there a method to "code local and push to remote"?

I use a fedora server with podman, caddyfile and vi.

you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 1 day ago (1 child)

"code local and push remote" is only more efficient if you have a faulty connection with ssh or want to use a GUI editor that doesn't support remote connections. What you're doing is good. You can scoure for more "modern" ways that might have more glimmer and sparkly lights, but it won't improve efficiency.

  • source
  • hideshow 1 child comment
  • [–] 2 points 12 hours ago

    Declarative configuration (like docker compose) is basically "code local, push remote", and it has a lot of benefits, including improving efficiency because you have a clearer idea of exactly what is set up on the server, to make it easier to debug or make changes.

    Contrast this with just sshing in and running a bunch of commands to install something. Then coming back months later and wondering "what files did I touch? what packagea did I install? Hmm dpkg log says I added X but then later I removed it, so was it important?" Etc.

  • source
  • parent