In this section, you will deploy the project to the Pages platform via Git repository import.
Pages currently supports access from Git providers such as Github and Gitee. The following uses Github access method as an example:
Connecting a 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 in: You can use a Gmail Account to quickly register and log in to the 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 access to your repository.
Select repository: Select the repository 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 repository: Select the repository to deploy.
Enter build command: Input your build command. If unsure, please check the scripts section in package.json.
Select acceleration region: Different regions determine node resources assigned to the project as well as whether ICP Filing Registration is required when adding custom domains. For details, refer to 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 auto-build your project and deploy it to the Global Edge Network.
The figure below indicates deployment success.
When new submissions are 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.
Handling Unexpected Circumstances
If the deployed version differs from the repository, please ensure to pull the latest version.
For other issues, please contact us via the feedback channel in the bottom-right corner.