Розгортання через Git

Від Git до робочого застосунку — без адміністрування сервера

Підключіть свій репозиторій. MoodLensAI визначить стек, збере й запустить його з уже налаштованими HTTPS, резервними копіями та моніторингом.

Визначення фреймворку

Файлові ознаки у вашому репозиторії (composer.json, package.json, manage.py тощо) звіряються з підтримуваними шаблонами середовища виконання — і ніколи через виконання вашого коду.

Обмежені, версійовані збірки

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.

Та сама керована інфраструктура

Застосунки, розгорнуті через Git, працюють на тій самій ізольованій, резервованій і моніторованій інфраструктурі, що й наші деплої на основі шаблонів.

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.

Перевірені фреймворки та процеси

Пов'язані функції

Часті запитання

Чи доступне розгортання з GitHub уже сьогодні?

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.

Яку гілку буде розгорнуто?

Ви обираєте репозиторій і гілку для підключення; кожен деплой збирається з останнього коміту цієї гілки.

Чи розгортається застосунок автоматично після пушу в мою гілку?

Ні. Розгортання — це свідома дія, яку ви виконуєте в панелі; MoodLensAI не розгортає повторно після кожного пушу.

Чи запускаєте ви код мого репозиторію до того, як я щось підтверджу?

Ні. Ми перевіряємо лише файлові ознаки (наприклад, composer.json чи package.json), щоб визначити ваш фреймворк, — ми ніколи не виконуємо код репозиторію заради цього.

Що станеться, якщо збірка провалиться?

Попередній робочий реліз залишається активним. Невдала збірка ніколи не замінює робочий деплой.

Репозиторій готовий?