In this section, you will deploy the project to the Pages platform by importing a Git repository.
Pages currently supports access from Git providers such as Github, Coding, and Gitee. The following uses the Github access method as an example:
Connecting to Git Repository
The first step in deploying your web application is to connect your Git repository. EdgeOne Pages seamlessly integrates with version control platforms, enabling smooth synchronization between your development workflow and the deployment process.
To connect your repository:
Sign up/log in: You can use a Gmail account to quickly sign up and log in to Tencent Cloud Console.
Get Started: Click on Get Started on the homepage.
Bind Github: On the console page, click "Github" to link your repository.
Authorize Github: Grant EdgeOne permission to access your repository.
Select a repository: Select the repository you want to deploy or authorize all repositories.
Custom Build
Once your repository is connected, you'll need to configure your build settings. This step is crucial for ensuring that your project is compiled and prepared correctly for deployment.
To customize your build:
Select a repository: Select the repository you want to deploy.
Enter build command: Enter your build command. If unsure, please check the value in the scripts section of package.json.
Select an acceleration region: Different regions determine the node resources assigned to the project, as well as whether record filing is required when adding a custom domain. For details, see Domain Name Management - Acceleration Region.
Global Deployment
With your repository connected and build settings configured, you're ready to deploy your application globally.
To initiate deployment:
Review your settings to ensure everything is correct.
Start Deployment: Click Start Deployment.
EdgeOne Pages will automatically build your project and deploy it to the Global Edge Network.
The following figure indicates deployment success.
When a new submission is pushed to the deployment branch, EdgeOne will automatically pull and deploy the latest submission.
By following these steps, you can quickly and easily deploy your web application using EdgeOne Pages, taking advantage of its powerful edge network and streamlined workflow.
How to Handle Unexpected Circumstances
If the deployed version is different from the repository, please ensure to pull the latest version.
If you have any other issues, please contact us through the feedback channel in the bottom-right corner.