Git-based deployment

From Git to a live app — without managing a server

Connect your repository. MoodLensAI detects the stack, builds it and runs it with HTTPS, backups and monitoring already configured.

Framework detection

File signals in your repository (composer.json, package.json, manage.py and similar) are matched against our supported runtime presets — never by executing your code.

Bounded, versioned builds

Each deploy is a new, isolated release with a health check before it goes live, so a broken build never replaces a working one. If something still goes wrong, restore your most recent backup from your dashboard.

Same managed infrastructure

Git-deployed apps run on the same isolated, backed-up, monitored infrastructure as our app-template deployments.

How a GitHub deploy works, step by step

Deploying from GitHub on MoodLensAI is a short, explicit sequence that you control from your dashboard. Nothing happens to your repository until you connect it, and nothing is built until you press deploy. That keeps the behavior predictable: you always know which commit is running and why.

  • Connect your GitHub account. You are sent to GitHub to authorize MoodLensAI and then returned to your dashboard.
  • Pick a repository and a branch. The list includes repositories you own, collaborate on, or reach through an organization.
  • Confirm the runtime preset. MoodLensAI preselects the preset that matches your framework and lets you change it if the guess is wrong.
  • Start the deploy. The branch is resolved to its current commit, so the exact code you are about to run is pinned before anything is built.
  • Wait for the health check. The release becomes active only after the application answers it.

How MoodLensAI recognizes your framework

Framework detection reads file signals, not running code. For a PHP project that means looking for an artisan file and the laravel/framework package in composer.json. For a JavaScript project it means checking the dependencies and scripts in package.json. For Python it means looking at the project files that name Django or FastAPI. Your repository is never executed to find this out, which matters when the code comes from a source you have not fully reviewed yet.

Detection only suggests a preset. You see the result before anything is built and you can switch to a different preset if the suggestion does not match what your app really is. Choosing a preset that does not match your framework usually fails at build or start time, so it is worth a quick look at that screen.

Frameworks you can deploy from Git today

Support is limited to runtimes that are backed by a real, tested preset. A framework that is not on this list is not silently supported, and we would rather tell you that up front than let a deploy fail halfway.

  • Laravel, run as a managed process with a MariaDB database, queue workers and the scheduler.
  • Next.js, run as a persistent Node.js server so server-side rendering and API routes keep working.
  • Node.js with Express or NestJS, run as a supervised server process.
  • Django and FastAPI, run as managed Python processes behind the reverse proxy.
  • React and Vue single-page apps, built once per deploy and served as static files.

Public and private repositories

Public and private repositories are connected the same way. GitHub shows its consent screen, you approve, and the repository appears in your list. One detail is worth knowing in advance: classic GitHub OAuth Apps do not offer a scope limited to a single private repository, so authorizing the connection lets MoodLensAI list every repository your account can reach, not only the one you plan to deploy. The access token is stored encrypted.

If a private repository does not show up, the usual cause is an organization that restricts third-party OAuth access. Ask an organization owner to approve MoodLensAI in the organization settings, or confirm that your own account actually has access to the repository.

Releases, health checks and failed builds

Every deploy produces a new, isolated release. The build runs with bounded resources, and the new release goes live only after the health check passes. If the build fails, or the application crashes on boot, the previous healthy release keeps serving your users. A failed build never replaces a working deployment.

The most common reasons for a failed health check are an application that does not listen on the expected port and a missing environment variable that stops the framework from booting. Both are visible in the deploy output, and both are fixed by correcting the configuration and deploying again.

Environment variables and databases

Secrets and configuration belong in environment variables, not in the repository. Some values are generated for you, such as the application key for Laravel and the database password. Others, such as third-party API keys, you set from your dashboard before the first deploy. Database connection settings are injected as environment variables, and the database is provisioned next to your app and is not exposed to the public internet.

Because each deploy is a fresh release, files written outside the persistent paths of your preset do not survive a redeploy. The preset page for your framework lists exactly which paths are kept.

Choosing the branch you deploy

You pick the branch once, and each deploy builds the latest commit on it. Many teams keep a stable branch for production and do their experiments elsewhere, then merge when the change is ready. Others deploy straight from the main branch of a small project. Both work, because the deploy always pins the exact commit before the build starts.

If you rename or delete the branch, or move the repository to a different owner, the connection no longer points at anything. Reselect the repository and branch from your dashboard and deploy again. Your data, your domain and your environment variables stay attached to the deployment, so nothing needs to be set up a second time.

A useful habit is to check the commit that your dashboard reports after a deploy and compare it with your local history. It takes a few seconds and removes any doubt about whether a fix has really shipped.

What Git deployment on MoodLensAI is not

A push to your branch does not redeploy automatically. Deploying is a deliberate action in your dashboard, which is why the question of which commit is live always has a clear answer. MoodLensAI is also not a continuous integration service: run your tests in the tool you already use, and deploy when the branch is ready.

Once the app is live you keep normal access to it. SSH is available on every plan, custom domains with automatic SSL are supported, and backups run on a schedule and are stored off the server. If you want to see how the pieces fit together before you start, the guide on deploying a web app from GitHub walks through each screen.

Verified frameworks and workflows

Related features

Frequently asked questions

Is deploying from GitHub live today?

Yes. Connect your GitHub account, pick a repository and branch from your dashboard, and deploy — see "How to deploy a web app from GitHub" for the exact steps.

Which branch gets deployed?

You choose a repository and branch to connect; each deploy builds from the latest commit on that branch.

Does a push to my branch redeploy automatically?

No. Deploying is a deliberate action you take from your dashboard; MoodLensAI does not redeploy on every push.

Do you run my repository code before I approve anything?

No. We only inspect file signals (such as composer.json or package.json) to detect your framework — we never execute repository code to do that.

What happens if the build fails?

The previous healthy release stays live. A failed build never replaces a working deployment.

Have a repository ready?