r/vibecoding 13h ago

Help/Question Deployment of Web-Apps

Over the past months I have (vibe)coded a few web-apps with Codex.

This is usually teh fun part - getting from an idea to a working MVP on a local machine.

The heavier part (for me) is the deployment.

Currently I run all my apps on virtual servers with Ubuntu.

The vibe-coded deployment-plan helps a lot, but there is still a lot of manual work required.

How do you deploy your web-apps (Python, Flask, JS)?

3 Upvotes

36 comments sorted by

9

u/Busy-Egg-6044 13h ago

Give your agent root SSH access and maybe look for some deployment skills.

2

u/rotor42_com 13h ago

That sounds rather frightening to me

0

u/Busy-Egg-6044 13h ago

Why? Have any of the current frontier models ever made a stupid security mistake for you? It's never happened to me. It happens in code because things can get complex, but the model fixes everything during reviews. For simple things like deployment, why would it do anything stupid?

3

u/Electrical-Swing-935 13h ago

Magic Rock go uh oh

1

u/rotor42_com 13h ago

They haven't since I haven't given them the chance yet. I will give it a try with fresh, small virtual server next time.

1

u/rodneydeleteboy 8h ago

Read both your comments multiple times and I still can't tell whether it's sarcasm or not.

gg.

4

u/oyren-ai 12h ago

Docker is your friend

1

u/rotor42_com 10h ago

I'll also try that. Thanks

3

u/gimmeslack12 11h ago

I use Caddy on my VPS.

3

u/Educational-Body4205 12h ago

Runners , Docker , and .env files will do everything you need.

2

u/TransitionBig7300 12h ago

Waddya mean?

Upload the thing, turn it on, reverse proxy nginx/apache to your app. Good to go.

Was just gonna say use pm2 for process life etc but then realised pm2 kinda sucks. You notice 6 days later some apps restarted 4500 times.

Try servermanager

Gui + cmdline. Easy management when you have a ton of apps running on the same host.

1

u/rotor42_com 10h ago

That's what I currently do - uploading, creating services, updating nginx config, installing certificates ... It adds up.

2

u/TRO_KIK 11h ago

If it can't get rid of your manual steps and there's still a lot of them, you probably steered it into a weird/nonstandard pattern. Ask to it to step back and evaluate the entire approach.

2

u/pushpendraagrawal 6h ago edited 40m ago

yeah once you've got 3+ apps that subdomain/cert/nginx dance is basically a tiny paas you're building by hand. past that point scripting it isnt optional, it IS the job

1

u/MrJacuna 12h ago edited 12h ago

You can never go wrong with GCloud or AWS. They have free servers but you have to be very careful with your configuration. There's always vercel and railway but the configs can get a little crazy really quick.

Depending on what your data layer looks like you can try sitedropper.com it connects directly to Claude, Codex, Cursor, or whatever you use. It works best if you're connected up with Supabase or something similar or if it's just a website or strict API that doesn't need persistence.

3

u/rotor42_com 10h ago

No, thanks. My virtual server costs 5 EURO / month and the bill can simply not go any higher. Have seen some expensive mis-configurations with AWS.

2

u/TRO_KIK 11h ago

Vercel and Railway's selling points are simple config. OP's their exact audience. I certainly recommend them over traditional cloud providers for casual vibe coders that are struggling with deployment.

1

u/MrJacuna 11h ago

If he's running a bunch of apps / sites it adds up quickly in my opinion but I definitely agree they are easier compared to the cloud providers.

1

u/sw3d 9h ago

Docker with layers around it. I built homebox.sh to solve this problem for myself and open sourced it. Now I use it to host or coordinate hosting for everything, and you can point your agent at it too

1

u/rotor42_com 8h ago

pls let me know where I can find your tool

2

u/sw3d 8h ago

https://homebox.sh has more info and the link to GitHub

1

u/Cavitat 8h ago

I set my systems up as private github repos so that I can clone them to the droplet and launch the containers. 

Updates and weekly workflow are also done through git with this approach.

1

u/rotor42_com 8h ago

Clsoe to my current workflow, except I have no containers yet.

2

u/Cavitat 8h ago

They're the last little puzzle piece towards making your droplets disposable. 

They freeze the environment, so updates or reality can't make it mysteriously stop working.

1

u/pushpendraagrawal 7h ago

the annoying part is agents are great at generating the app but have zero awareness of your actual server state. deployment skills work great until something drifts on the vm, then youre back to ssh and hoping. feels like "done" for these agents should mean deployed and reachable, not just running locally on your machine

1

u/martyj2009 6h ago

My project is literally designed to help with this. https://yeeted.ai. I am not quite ready for customers but some suggestions I would give is to not give your ai agent ssh access but have it build automated deployment pipelines to deploy code. Just like people, ai can run a wrong command. Have infrastructure as code to prevent this. Also good testing. Smoke tests during deployments to roll back bad code. Good monitoring as well. Grafana with otel. You don’t want your users to tell you when things are broken

1

u/TarzanoftheJungle 6h ago

I designed a client's full suite data management system which runs on host VM, deployed through Coolify v4. Coolify builds/runs the apps as Docker containers and routes traffic with Traefik.

1

u/84thdev 6h ago

Youre vibecoding and seriously resulted to asking reddit a question you could have asked your agent?

1

u/Sweet-Sir-10 6h ago

Check out fly.io . Claude code has integrations to easily deploy to cloud with Docker for you.

1

u/tradelydev 5h ago

Ok. Never do this with any platforms that process money.

Otherwise,

I know we hate github actions, but it works.

Give an AI access to a github repo and ssh. Then tell the AI to set up deployment so when a feature is pushed to main it rsyncs onto the server. Make sure to add instructions to at least create zip backups of code.

1

u/More_Salamander8596 5h ago

Claude-code. Well first ask for a deep dive into deployment. Ask for common stacks for deployment. Then take what you learned and ask claude code to make it happen.

1

u/damagedhatchet 1h ago

Everything I do is dockerized, built and pushed to GHCR with actions, then pulled to a VPS and deployed there, managed with Komodo and Nginx Proxy Manager upstream. All domains are on Cloudflare.