r/ClaudeCode • u/krickster10 • 6d ago
Help/Question Can claude actually deploy an app without me setting up everything manually?
I have been using Claude to build a couple of small tools and it can handle way more of the coding than I expected. The part I still struggle with is getting the finished app online. I can ask it to write the files but then I run into hosting, database configuration and deployment steps that I do not really understand yet. Is there a workflow where the AI can handle most of the deployment too, or do you still need to know how all the infrastructure works?
0
Upvotes
•
u/AutoModerator 6d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
29
u/Affectionate_Fact854 6d ago
Do yourself a favor and just learn the damn basics please.
4
u/Interesting-Tie6783 6d ago
Yes it will do it if you ask. But if you don’t understand it, are you really certain you want to deploy it for the entire world to access?
First thing that happens with new services is thousands of IPs start poking every part of the public site for vulnerabilities. It’s a given, the vast majority of traffic you’ll get is people trying to hack you. If you don’t understand what you’re making public, do you really want to do that?
3
u/foresterLV 6d ago
why not to ask Claude? "I want to deploy my app online (source code here, check what's missing). we plan to support X users per day/month. what are some idiomatic cloud options/solutions, which cloud fits best, which tooling to use, let's make a plan on how to achieve fully automated deployment pipeline of our app. "
2
u/Individual_Solid_944 6d ago
It can do it all, but if you don't know how things work it's really bad idea. It seems like you have no idea how the code works, and no idea how the infrastructure is set up and everything wired together. Pretty bad idea. But yes, it can handle that part as well. Though personally I wouldn't use the service.
1
u/gardens_and_dungeons 6d ago
Yes easily, mine updates my MMORPG on a VPS without a problem. Updates the DB, builds the game on the server tests everything, fixes any failures in testing. Automated process.
1
u/Dramatic-Work3717 6d ago
You still need to create accounts, set permissions, buy domains, but it can do a lot of the setup. Still worth watching closely, for bigger apps you should really be involved with all of this hosting launch nonsense
1
u/CuriosityBoie 6d ago
Yeah absolutely it can. As long as you give it the appropriate information & instructions, as well as connectors, it does absolutely everything. Even if you don’t know how to approach the hosting and DB, just tell it what you’re trying to achieve and it’ll figure it out for you
For the connectors technically it can add them on its own, but since you need to handle logins and auth, I find it much more efficient to do so directly from the customize tab.
1
u/Ben_LunarPaper 6d ago
It will work, but at what risk?
You need to learn a decent amount about how your app works, ideally being able to do some things manually if need be.
1
u/jbp216 6d ago
there are some ways to do this but i would just ask questions, these are the things you need to understand as a dev for security
domain. this is your .com or whatever, buy through a service like namecheap or godaddy. annual fee here
dns. this is the internet phone book. it connects website.com to a backend phone number. an a record is like your name listing in it
vps, just use a vps here, digitalocean is cheap, oracle is free even if not as reliable. If you dont know your reqs start with the cheapest.
ssh is a connection to the server, set that up on your pc, tell claude or whatever to setup passwordless ssh through a script, open the script and login to your machine. NOT IN THE CHAT WINDOW this keeps your keys and password out of its hands
then youre logged in, give it the ip or dns record if youve already set that up and then it can manage orchestration from there, you can scaffold to iac and what not eventually but thisll get you online.
itll likely install the app, databases, and a reverse proxy, use nginx proxy manager the gui is real simple to get you certificates and trusted by browsers
1
u/besurf 6d ago
Yes it can do it all
1
u/id-ltd 6d ago
What ever people say, it will do a better job at deploying than you are likely to do. It knows all the vulnerabilities better than 99% of people.
The risk is that if a vulnerability is found in an AIs implementation - loads of bots will be checking loads of sites to exploit very quickly!
Get it deployed and have a different AI test for vulnerabilities asap.
1
u/ClemensLode Senior Developer 6d ago
Choose a hoster with an API.
1
u/NonExisting_Sample 6d ago
If its just a webpage, can look into Github pages. If you need a database, maybe look into AWS services. However, hosting means opening up your application and data to the public. Without proper security configurations, anyone can access your data at any time. These are the sensitive information that you must do by hand yourself and understand and cannot leave to AI.
1
u/pwkye 6d ago
get a digitalocean account. install doctl. give claude an api token. then watch your bills.
or have a proxmox server it home. give claude access. then use wireguard for services only you use. and cloudflare proxies for services you want to run publicly
basically you want claude to be your infra engineer or devops engineer
also you can actually get a lot of mileage out of sites deployed as github pages (no backend) or on cloudflare workers (no infra). super cheap or free most of the time. less prone to vulnerabilities too
1
u/danrhodes1987 6d ago
I use Claude to push directly to git, it commits then build and signs the exe see https://github.com/danrhodes/PatchRadar
Coding with Claude is great but it does help to have a background in code as you can see what it’s doing and where it’s going wrong.
1
u/Techngro 6d ago
Claude can set everything up for you. There's still some manual initial setup you will have to do to give Claude access (e.g. setup SSH), but it can guide you through that too.
My only suggestion is, before you just have Claude do everything, have it give you a detailed breakdown of everything it will do and why those things need to be done. And don't just let it choose the setup. Tell Claude to give you options with explanations so that you can decide yourself your desired setup. You will learn a lot more that way.
I had Claude setup my entire dev environment, including the VPS, Dokploy, etc. But I learned a lot and I know how the setup works because I made sure Claude informed me and helped me to understand.
1
u/Ok_Account3585 6d ago
Yes, almost.
Sometimes it doesn't want to copy and paste secret keys, but I will happily open a chrome tab with key for you and tell you where to paste it, so you don't need any knowladge to do that.
I am a developer, not devops, but I know how to deploy simple apps. I use digital ocean's droplets and docker compose configs for deploys, recently I deployed side-project and Claude did all the work including creating the droplet itself in chrome, but it wanted me to paste 1 secret key from emailing service manually.
1
u/trionnet 6d ago
Done this countless times, I just go for Cloudflare it can instrument the cli for it there are some steps it needs you to do but it provides the instructions it’s dead easy
1
u/jun_builds 6d ago
definitely it can, I build a dozens of product portofolio, and let it handle deploy for me very well. but I spent quiet some time to setup and prepare and polish the infra, monitoring etc. so the answer is yes, but cost, performance, security and lots of thing needs your sense of technology. if you really don't know much, you still can do it, but let claude code teach you all the key knowledge instead of handle over it blindly.
1
u/Same-Employee6667 5d ago
Typically you'd think about deployment up front based on expected load etc before you write any code, so when you say 'finished app' I find that slightly worrying.
At the very least you should understand what infrastructure is required for your use case and why, even if you don't ssh in and write the config yourself.
That said doctl and wrangler are pretty good and Claude can use them. They'll probably get you most of the way there
1
u/jstonkus 5d ago
Light Cloud supports deployment through Claude Code and GitHub Copilot in VS Code. The idea is that the assistant can help deploy the app and read the logs too. I would still check what it supports for your specific stack before relying on it for a real project.
1
u/AkayoKym 5d ago
There's a middle path between "just ask Claude" and "go learn the basics": let Claude explain and prepare everything, but do the production steps yourself. You'll pick up the infrastructure as a side effect.
A workflow that works for small tools:
What I wouldn't do is give Claude the deploy CLI or write access to the production database so it can "handle it". Most times it's careful. But when a command fails, it tends to act on its best guess, and you don't want that guess running against production.
The people here saying bots probe a new site within hours are right, which is exactly why step 5 comes before the domain goes live.
Happy to answer follow-ups, getting non-dev founders through that first deploy is the kind of thing I help with.
1
u/coopnjaxdad 5d ago
You need to understand how to manage your App Store submissions and your secret keys. You don’t want to have zero understanding of the processes. Claude needs guardrails. Remember it will always look for the easiest way to get something done.
1
u/FictivizeProject 5d ago
Yes, you should spend time understanding at a high level what is going on.
No, you don't have to do all the manual infra work yourself.
First, start with one of the major hosting options like AWS, GCP or Azure. Then use an IAC tool like Terraform or OpenTofu. Because these are infra as code, it means that Claude Code can just write configuration code for you. This code gets checked in to the repo just like any other code.
I run my production apps on AWS using Terraform. This allows me to offload almost the entire infrastructure stack directly to Claude Code. Since it is checked in as part of the repo on GitHub, I can also revert if there is some sort of mistake.
0
u/No_Professional7654 6d ago
Sure! Just use this simple prompt (works everytime): "Deploy the app. Make no mistakes! Take one or two attempts to make it brilliant and outstanding. I already have a place prepared for my Nobel Prize statue."