You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/pages/configuration/git-integration/github-integration.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ pcx_content_type: concept
3
3
title: GitHub integration
4
4
---
5
5
6
-
Cloudflare supports connecting Cloudflare Pages to your GitHub repositories, and will automatically deploy your code everytime you push a change to a branch.
6
+
You can connect each Cloudflare Pages project to a GitHub repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
7
7
8
8
## Features
9
9
@@ -19,7 +19,7 @@ You can also use [preview deployments](/pages/configuration/preview-deployments/
19
19
20
20
Every time you open a new pull request on your GitHub repository, Cloudflare Pages will create a unique preview URL, which will stay updated as you continue to push new commits to the branch. Note that preview URLs will not be created for pull requests created from forks of your repository. Learn more in [Preview Deployments](/pages/configuration/preview-deployments/).
@@ -73,7 +73,7 @@ Note that removing access to GitHub will disable new builds for Workers and Page
73
73
74
74
### Reinstall the Cloudflare GitHub app
75
75
76
-
When encountering Git integration related issues, one potential troubleshooting step is attempting to uninstall and reinstall the GitHub application associated with the Cloudflare Pages installation.
76
+
If you see errors where Cloudflare Pages cannot access your git repository, you should attempt to uninstall and reinstall the GitHub application associated with the Cloudflare Pages installation.
77
77
78
78
1. Go to the installation settings page on GitHub:
79
79
- Navigate to **Settings > Builds** for the Pages project and click **Manage** under Git Repository.
Copy file name to clipboardExpand all lines: src/content/docs/pages/configuration/git-integration/gitlab-integration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ pcx_content_type: concept
3
3
title: GitLab integration
4
4
---
5
5
6
-
Cloudflare supports connecting Cloudflare Pages to your GitLab repositories, and will automatically deploy your code everytime you push a change to a branch.
6
+
You can connect each Cloudflare Pages project to a GitLab repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
Copy file name to clipboardExpand all lines: src/content/docs/pages/configuration/git-integration/index.mdx
+63-3Lines changed: 63 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ pcx_content_type: concept
3
3
title: Git integration
4
4
---
5
5
6
-
Cloudflare supports connecting Cloudflare Pages to your[GitHub](/pages/configuration/git-integration/github-integration)and[GitLab](/pages/configuration/git-integration/gitlab-integration)repositories, and will automatically deploy your code everytime you push a change to a branch.
6
+
You can connect each Cloudflare Pages project to a[GitHub](/pages/configuration/git-integration/github-integration)or[GitLab](/pages/configuration/git-integration/gitlab-integration)repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
7
7
8
8
:::note
9
9
Cloudflare Workers now also supports Git integrations to automatically build and deploy Workers from your connected Git repository. Learn more in [Workers Builds](/workers/ci-cd/builds/).
10
10
:::
11
11
12
-
Using Git integration with Cloudflare also provides:
12
+
When you connect a git repository to your Cloudflare Pages project, Cloudflare will also:
13
13
14
14
-**Preview deployments for custom branches**, generating preview URLs for a commit to any branch in the repository without affecting your production deployment.
15
15
-**Preview URLs in pull requests** (PRs) to the repository.
@@ -31,7 +31,9 @@ If you using a different Git provider (e.g. Bitbucket) or a self-hosted instance
31
31
32
32
## Add a Git integration
33
33
34
-
If you don't have a Git account linked to your Cloudflare account, you'll be prompted to set up an installation to GitHub or GitLab when [connecting to Git](/pages/get-started/git-integration/) for the first time, or when adding a new Git account. Follow the prompts and authorize the Cloudflare Git integration.
34
+
## Add a Git integration
35
+
36
+
If you do not have a Git account linked to your Cloudflare account, you will be prompted to set up an installation to GitHub or GitLab when [connecting to Git](/pages/get-started/git-integration/) for the first time, or when adding a new Git account. Follow the prompts and authorize the Cloudflare Git integration.
35
37
36
38
You can check the following pages to see if your Git integration has been installed:
37
39
@@ -42,6 +44,8 @@ For details on providing access to organization accounts, see the [GitHub](/page
42
44
43
45
## Manage a Git integration
44
46
47
+
## Manage a Git integration
48
+
45
49
You can manage the Git installation associated with your repository connection by navigating to the Pages project, then going to **Settings** > **Builds** and selecting **Manage** under **Git Repository**.
46
50
47
51
This can be useful for managing repository access or troubleshooting installation issues by reinstalling. For more details, see the [GitHub](/pages/configuration/git-integration/github-integration/#managing-access) and [GitLab](/pages/configuration/git-integration/gitlab-integration/#managing-access) guides.
@@ -55,3 +59,59 @@ If you are using a Git-integrated project and do not want to trigger deployments
55
59
3. You can also change your Preview branch to **None (Disable automatic branch deployments)** to pause automatic preview deployments.
56
60
57
61
Then, you can use Wrangler to deploy directly to your Pages project and make changes to your Git repository without automatically triggering a build.
62
+
63
+
## Troubleshooting
64
+
65
+
If your git integration is experiencing issues, you may find the following banners in the Deployment page of your Pages project.
66
+
67
+
### Project Creation
68
+
69
+
#### `This repository is being used for a Cloudflare Pages project on a different Cloudflare account.`
70
+
71
+
You cannot use the same GitHub/GitLab repository with multiple Cloudflare accounts. To use a Pages project with a different Cloudflare account, delete it from the current Cloudflare account first.
72
+
73
+
### Deployments
74
+
75
+
If you run into any issues related to deployments or failing, check your project dashboard to see if there are any SCM installation warnings listed as shown in the screenshot below.
76
+
77
+

78
+
79
+
To resolve an error displayed in the Cloudflare Pages dashboard, find it below and follow the instructions.
80
+
81
+
#### `This project is disconnected from your Git account, this may cause deployments to fail.`
82
+
83
+
To resolve this issue, follow the steps provided above in the [Reinstalling a Git installation section](/pages/configuration/git-integration/#reinstall-a-git-installation) for the applicable SCM provider. If the issue persists even after uninstalling and reinstalling, contact support.
84
+
85
+
#### `Cloudflare Pages is not properly installed on your Git account, this may cause deployments to fail.`
86
+
87
+
To resolve this issue, follow the steps provided above in the [Reinstalling a Git installation section](/pages/configuration/git-integration/#reinstall-a-git-installation) for the applicable SCM provider. If the issue persists even after uninstalling and reinstalling, contact support.
88
+
89
+
#### `The Cloudflare Pages installation has been suspended, this may cause deployments to fail.`
90
+
91
+
Go to your GitHub installation settings:
92
+
93
+
-`https://github.com/settings/installations` for individual accounts
94
+
-`https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations` for organizational accounts
95
+
96
+
Click **Configure** on the Cloudflare Pages application. Scroll down to the bottom of the page and click **Unsuspend** to allow Cloudflare Pages to make future deployments.
97
+
98
+
#### `The project is linked to a repository that no longer exists, this may cause deployments to fail.`
99
+
100
+
You may have deleted or transferred the repository associated with this Cloudflare Pages project. For a deleted repository, you will need to create a new Cloudflare Pages project with a repository that has not been deleted. For a transferred repository, you can either transfer the repository back to the original Git account or you will need to create a new Cloudflare Pages project with the transferred repository.
101
+
102
+
#### `The repository cannot be accessed, this may cause deployments to fail.`
103
+
104
+
You may have excluded this repository from your installation's repository access settings. Go to your GitHub installation settings:
105
+
106
+
-`https://github.com/settings/installations` for individual accounts
107
+
-`https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations` for organizational accounts
108
+
109
+
Click **Configure** on the Cloudflare Pages application. Under **Repository access**, ensure that the repository associated with your Cloudflare Pages project is included in the list.
110
+
111
+
#### `There is an internal issue with your Cloudflare Pages Git installation.`
112
+
113
+
This is an internal error in the Cloudflare Pages SCM system. You can attempt to [reinstall your Git installation](/pages/configuration/git-integration/#reinstall-a-git-installation), but if the issue persists, [contact support](/support/contacting-cloudflare-support/).
114
+
115
+
#### `GitHub/GitLab is having an incident and push events to Cloudflare are operating in a degraded state. Check their status page for more details.`
116
+
117
+
This indicates that GitHub or GitLab may be experiencing an incident affecting push events to Cloudflare. It is recommended to monitor their status page ([GitHub](https://www.githubstatus.com/), [GitLab](https://status.gitlab.com/)) for updates and try deploying again later.
Copy file name to clipboardExpand all lines: src/content/docs/pages/get-started/git-integration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: Connect your Git provider to Pages.
9
9
10
10
import { Details, Render } from"~/components";
11
11
12
-
In this guide, you will get started with Cloudflare Pages, and deploy your first website to the Pages platform through Git integration. The Git integration enables automatic builds and deployments every time you push a change to your connected [GitHub](/pages/configuration/git-integration/github-integration/) or [GitLab](/pages/configuration/git-integration/gitlab-integration/) repository.
12
+
In this guide, you will get started with Cloudflare Pages and deploy your first website to the Pages platform through Git integration. The Git integration enables automatic builds and deployments every time you push a change to your connected [GitHub](/pages/configuration/git-integration/github-integration/) or [GitLab](/pages/configuration/git-integration/gitlab-integration/) repository.
13
13
14
14
:::caution[You cannot switch to Direct Upload later]
15
15
If you deploy using the Git integration, you cannot switch to [Direct Upload](/pages/get-started/direct-upload/) later. However, if you already use a Git-integrated project and do not want to trigger deployments every time you push a commit, you can [disable automatic deployments](/pages/configuration/git-integration/#disable-automatic-deployments) on all branches. Then, you can use Wrangler to deploy directly to your Pages projects and make changes to your Git repository without automatically triggering a build.
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/build-caching.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar:
6
6
order: 5
7
7
---
8
8
9
-
Improve Workers Builds build times by caching dependencies and build output between builds with a project-wide shared cache.
9
+
Improve Workers build times by caching dependencies and build output between builds with a project-wide shared cache.
10
10
11
11
The first build to occur after enabling build caching on your Workers project will save relevant artifacts to cache. Every subsequent build will restore from cache unless configured otherwise.
12
12
@@ -16,7 +16,7 @@ When enabled, build caching will automatically detect which package manager and
16
16
17
17
The following shows which package managers and frameworks are supported for dependency and build output caching respectively.
18
18
19
-
### Package Managers
19
+
### Package managers
20
20
21
21
Workers build cache will cache the global cache directories of the following package managers:
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/git-integration/github-integration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar:
6
6
order: 2
7
7
---
8
8
9
-
Cloudflare supports connecting your GitHub repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9
+
Cloudflare supports connecting your GitHub repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/git-integration/gitlab-integration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar:
6
6
order: 2
7
7
---
8
8
9
-
Cloudflare supports connecting your GitLab repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9
+
Cloudflare supports connecting your GitLab repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/git-integration/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar:
6
6
order: 3
7
7
---
8
8
9
-
Cloudflare supports connecting your [GitHub](/workers/ci-cd/builds/git-integration/github-integration/) and [GitLab](/workers/ci-cd/builds/git-integration/gitlab-integration/) repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9
+
Cloudflare supports connecting your [GitHub](/workers/ci-cd/builds/git-integration/github-integration/) and [GitLab](/workers/ci-cd/builds/git-integration/gitlab-integration/) repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
10
10
11
11
Adding a Git integration also lets you monitor build statuses directly in your Git provider using [check runs](/workers/ci-cd/builds/git-integration/github-integration/#check-run) or [commit statuses](/workers/ci-cd/builds/git-integration/gitlab-integration/#commit-status), allowing you to manage deployments without leaving your workflow.
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/troubleshoot.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The build system uses the `name` argument in the wrangler.toml to determine whic
25
25
:::note
26
26
This does not apply to [Wrangler Environments](/workers/wrangler/environments/) if the Worker name before the `-<env_name>` suffix matches the name in wrangler.toml.
27
27
28
-
For example, a Worker named `my-worker-staging` on the dashboard can be deployed from a repository that contains a wrangler.toml with the arguemnts`name = my-worker` and `[env.staging]` using the deploy command `npx wrangler deploy --env staging`.
28
+
For example, a Worker named `my-worker-staging` on the dashboard can be deployed from a repository that contains a wrangler.toml with the arguments`name = my-worker` and `[env.staging]` using the deploy command `npx wrangler deploy --env staging`.
Copy file name to clipboardExpand all lines: src/content/docs/workers/get-started/dashboard.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ To create a Workers application:
37
37
38
38
To do more:
39
39
40
-
- Push your project to a GitHub or GitLab respoitory then [connect to Builds](/workers/ci-cd/builds/#get-started) to enable automatic builds and deployments.
40
+
- Push your project to a GitHub or GitLab respoitory then [connect to builds](/workers/ci-cd/builds/#get-started) to enable automatic builds and deployments.
41
41
- Review our [Examples](/workers/examples/) and [Tutorials](/workers/tutorials/) for inspiration.
42
42
- Set up [bindings](/workers/runtime-apis/bindings/) to allow your Worker to interact with other resources and unlock new functionality.
43
43
- Learn how to [test and debug](/workers/testing/) your Workers.
0 commit comments