Chief Tools Logo

Environment

object

Implements

Entity·interface

An object with an ID.

Fields

id·ID!
app·App!

The app this environment is attached to.

name·String!

The name of the environment.

slug·String!

The slug of the environment.

url·URL

The url of the environment.

branch·String!

The branch name used to deploy to this environment.

secret·String!

The secret, used in deployment trigger URL.

trigger·URL!

The trigger URL that can be used to trigger deployments.

The current deployment state for this environment.

envFile·String

The contents of the .env file for this environment.

customPhpPath·String

The optional path we alias the php command to.

customServerUser·String

The optional username we use when connecting to a server.

keepDeployments·Int!

The amount of deployments to keep on the servers.

deployOnPush·Boolean!

Indicates if the environment should be deployed on push.

cancelPending·Boolean!

Indicates if the environment should cancel pending deployments if a newer one is requested.

syncStatusToGitHub·Boolean

Indicates if the environment should sync it's deployment status to GitHub.

This is null if the app does not sync it's deployment status to GitHub.

notifySentry·Boolean

Indicates if releases and deploys should be reported to Sentry for this environment.

This is null if the app is not connected to Sentry.

sentryEnvironment·String

The Sentry environment name override, null to use the environment slug.

latestDeployment·Deployment

The latest deployment for this environment.

phpVersion·String

The PHP version detected on the server.

createdAt·DateTimeTz!

Identifies the date and time when the object was created.

updatedAt·DateTimeTz!

Identifies the date and time when the object was last updated.

scriptGroups·[ScriptGroup!]!

Retrieve all script groups as defined for this environment.

scriptConnection·ScriptEnvironmentConnection(1 arg)

Retrieve a single script connected to the environment.

Arguments