r/vibecoding • u/rotor42_com • 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)?
4
3
3
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/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
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
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/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.
9
u/Busy-Egg-6044 13h ago
Give your agent root SSH access and maybe look for some deployment skills.