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.

  • HelloRoot@lemy.lol
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    27 days ago

    with dokplpy as a server docker managementweb gui.

    for the code push workflow:

    • keep your normal git workflow, commit & push
    • set up a git hook in git & dokploy that rebuilds from source on every push
    • or do it on a schedule and build once a day or whatever

    If you’re project has an unusual way to build, you could also do a git action that pushes a docker image out somewhere, depending on yoyr git provider.

    There are probably infinitely many ways to autodeploy something.

    If you need a step bt step breakdown, I can give you a guide based on my personal website, but that might not apply to your project.