Deploy projects built with Claude Code
Claude Code is where the code gets written. Once it lives in a Git repository, MoodLensAI can detect the stack and run it on managed infrastructure — the same way as any other Git-based deploy.
This describes a standard Git-based deploy workflow. MoodLensAI has no native, in-editor integration with Claude Code — connect the repository it produces like any other GitHub repository.
No native lock-in
There is no proprietary export step: it is a plain Git repository, deployable the same way as any other project.
Framework detection
MoodLensAI inspects the repository's file signals to match it against a supported framework — see the frameworks list.
Managed from there on
HTTPS, backups and monitoring are handled the same way regardless of what wrote the code.
The workflow for projects built with Claude Code
MoodLensAI has no plug-in for Claude Code, and it does not need one. The connection point is a Git repository, which every serious coding workflow already produces. The steps are the same as for any hand-written project.
- Finish the change with Claude Code and review it before you commit.
- Push the commit to a branch of a GitHub repository.
- Connect that repository to MoodLensAI from your dashboard and select the branch.
- Confirm the detected framework and set the environment variables your app needs.
- Deploy, wait for the health check and open the live address.
Working with Claude Code and Git
Claude Code works inside your project directory from the terminal. It edits files in your working copy and can run commands such as the test suite or Git itself, so the natural way to hand its work to a server is to let it prepare a commit and then push that commit to GitHub yourself.
Review the diff before you push. A session can touch many files, and a quick read of the changes is the cheapest protection against shipping something you did not intend, including accidentally committed secrets. A dedicated branch for the change keeps the branch you deploy clean until you are happy with the result.
If the project is brand new, ask Claude Code to scaffold it with a framework from the supported list and to read configuration from environment variables from the start. That one instruction removes most of the work that would otherwise happen at deploy time.
Instructions that make a Claude Code project deployable
A few lines in your first prompt, or in the instructions file you keep in the repository, save a lot of rework later. Ask for the following and the generated project will usually deploy on the first attempt.
- Use one of the supported frameworks and keep the standard project layout for it.
- Read every secret and every connection setting from environment variables.
- Expose a simple health route that returns a success status when the app is ready.
- Write uploaded or generated files only to a path that persists between releases.
- Document the start command and required variables in the README.
Iterating with Claude Code after launch
The first deploy is the start of the loop, not the end. When you want to change something, describe it to Claude Code, read the diff, run the tests it can run locally, commit and push. Then deploy the branch again. If the new release fails its health check, the previous one keeps serving users, so you can ask Claude Code to fix the problem using the deploy output as context without any downtime.
Over time it helps to keep small, focused commits. They make it easy to see which change shipped in which release, and they make it simpler to return to an earlier commit if a change turns out to be a mistake.
Which frameworks work
A project written with Claude Code can use any stack, but deployment works for the frameworks that have a verified preset: Laravel, Next.js, Node.js with Express or NestJS, Django, FastAPI, and static React or Vue builds. If you ask Claude Code to start a new project, naming one of these frameworks in the prompt means the result can be deployed without rework.
A stack outside that list is not silently supported. It is better to find that out before the project grows than at the moment you want to publish it.
Handling API keys and other secrets
Projects built with Claude Code often call external services: a model provider, a payment system, an email sender. Each of those needs a key, and the key must never end up in the repository. Keep a template file that lists the variable names without values, commit that, and enter the real values in your dashboard before the first deploy.
If a key was committed by mistake, treat it as exposed. Removing it from the latest commit does not remove it from the history, so rotate it at the provider and use the new value from then on.
When the first deploy does not pass
A failed first deploy is common and almost always explained by the output. The build may stop because a dependency is missing from the manifest. The health check may fail because the app listens on a different port than its preset expects, or because it crashes on boot while reading a variable that is not set. A wrong preset has the same symptoms, so confirm that the detected framework really matches the project.
The previous healthy release stays live while you fix the cause, so there is no pressure to patch things in a hurry. Correct the repository or the configuration, push, and deploy the branch again.
A checklist before you press deploy
Code generated in a session usually runs on the machine where it was written. A short check removes the usual surprises on a server.
- The app listens on the port that its preset expects, not on a hard-coded local address.
- No secrets are committed. API keys belong in environment variables on your deployment.
- The dependency manifest is complete, so a clean install on a fresh machine succeeds.
- Anything the app writes to disk goes to a persistent path of the preset, because other files are lost on the next release.
- The database settings are read from environment variables rather than written into the code.
What stays with you after the deploy
MoodLensAI runs the application, keeps HTTPS valid, takes scheduled backups and monitors health. It does not run Claude Code for you and it does not host an AI model. If your product calls a model provider, that call goes from your app to the provider using a key you control.
You keep shell access over SSH on every plan, so you can look at the running app whenever the assistant's output behaves differently on the server than it did locally. Nothing redeploys when you push. When the next change is ready, you deploy the branch again from your dashboard, and a failed build leaves the previous healthy release in place.
Related pages
Frequently asked questions
Does MoodLensAI integrate directly with Claude Code?
No native integration exists today. The workflow is: build with Claude Code, push to a Git repository, connect that repository to MoodLensAI.