The environment

Published

Updated

</>

Live runtime.

An environment is one running copy of an app on fortrabbit, such as production or staging, with its own components, settings, data and Git branch. Every app has at least one.

About environments

  • An environment belongs to an app, and every app has at least one.
  • Each environment is a separate hosting setup with its own settings and components, billed on its own.
  • Several environments make staging workflows possible.

The dashboard names an environment as {app name} / {environment name}. Its ID, such as en-a1b2c3, never changes.

Environment maps to git branch

The Git repository belongs to the app, a branch to the environment. Git deployment is optional.

Environment workflows

Many apps have one environment only. See project organization.

Naming an environment

A new environment takes the name of its Git branch, often main. The name says nothing about the role: a single environment often serves development first and production later. Change the name in the dashboard.

Creating an environment

Creating an app creates its first environment. Add more at any time:

Restarting an environment

A restart can free hanging PHP processes, for example during 504 errors:

  1. Open the environment in the dashboard.
  2. Click Restart and confirm.
  3. Wait a minute.

The restart covers all services of the environment: PHP, Apache, SSH and jobs. Files and database stay as they are. There is a short downtime. A restart treats the symptom; when it is needed often, see performance.

Deleting an environment

Delete an environment in its settings in the dashboard. Its files and database go with it, and deletion cannot be undone, also not by support. See late payments for when fortrabbit deletes environments.

Environment settings

See settings.

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗