Build and Deployment Related
Why am I still getting a 404 error when accessing my application after its first successful build?
During the first build of your application, you need to deploy CDN configuration. The CDN takes 2-5 minutes to take effect, after which your application will be accessible.
Why didn't my repository code update trigger automatic deployment?
Webify core services are located within China. Webhook trigger requests from overseas Git platforms (such as Github, Gitlab) may fail with a very small probability due to network line stability, resulting in failure to trigger automatic deployment. We will continuously optimize the stability of the network lines in the future.
We recommend using domestic Git platforms.
In this case, you can choose to manually trigger deployment in the Tencent Cloud console.
Why hasn't the page been updated after I redeployed my application?
Each application comes with CDN caching, with a default cache duration of 10 minutes. After an application update, the CDN cache is not refreshed immediately and may take up to 10 minutes to update.
What to do if the build fails?
Webify is only a deployment platform; build failures may be due to code issues. We recommend that you first verify whether the code logic is correct and whether the Node version is supported (currently only Node 14 is supported).
Process:
- First, verify that the local build is functioning properly.
- a. It is recommended to first remove the local node_modules dependencies, switch the local node version to 14.17.6, and then fully run the "Install Command" and "Build Command" configured on webify.
- Then, verify that the cloud build configuration is correct.
a. Build Command:
- i. Whether it depends on locally installed tools
- ii. The cloud environment uses Node 14.17.6. Verify whether the commands can run properly in a local Node 14 environment (higher versions of Node are not currently supported)
b. Output Directory:
- i. Verify whether the configuration is correct. For example: the project's build output directory is "out", but it is set to "dist" in the configuration.
- On the Webify console, you can view build logs and troubleshoot the issue based on the log information
- If the local build succeeds, you can use the CloudBase CLI tool to upload build artifacts. Refer to: Managing Static Hosting with CLI