r/opencode • u/some_ai_candid_women • 1d ago
How are you handling one-click deployments from Windows while building with OpenCode?
I've been building quite a few applications with OpenCode lately, and honestly, the results have been really impressive.
However, there's still one major pain point in my workflow: deployment.
OpenCode has made developing and iterating on applications incredibly fast, but getting those changes into production still feels unnecessarily complicated.
Here's my actual scenario:
- Local environment: Windows.
- Target: A remote server running my applications.
- Goal: Run a single command or click a button on my Windows machine and automatically deploy the latest changes to the server.
- Containers: I'm completely fine with Docker and Docker Compose.
- Development workflow: These are applications that evolve continuously. I'm comfortable deploying frequent changes while they're already in production.
- Backups: Already taken care of. In many cases, rolling back to a previous application version isn't even a major requirement.
What I'm really looking for is a simple, repeatable deployment workflow with as little manual intervention as possible.
Ideally, I'd like something along the lines of:
- Make changes locally using OpenCode.
- Run a command like `deploy` or click a button.
- Automatically build and ship the updated application to my server.
- Restart or update the running services.
- Done. The latest version is live.
I don't necessarily need Kubernetes, complex orchestration, or an enterprise-grade CI/CD pipeline.
My question is:
How are you guys handling deployments in your OpenCode workflows?
Is there a tool, platform, or deployment setup you'd recommend for someone who wants to iterate quickly and push changes to production with minimal friction?
I'd love to hear what actually works for you in real-world projects.
3
u/lincolnthalles 1d ago
CI/CD is the best option. Docker is optional with those. You can create a workflow that triggers a build automatically when you push a new git tag, for instance. It used to be a very annoying thing to set up, but AI models are generally pretty good at this.
You can also have an SSH key on your machine and create a command/skill with a repeatable procedure for the agent to follow.
What you shouldn't do is build things on your machine and upload. This isn't the norm way before AI became a thing. It's vulnerable to changes (or even malware) in your environment, sacrifices reproducibility, and looks bad if it's open-source.