Project build resources
When you push changes through Git, your applications are first built, then deployed.
During the build process, Upsun creates a build image for each of your application, as a dedicated build container, and runs your build hooks inside that build container. The duration of the build process is directly linked to the amount of resources (CPU and RAM) allocated to that build container.
Every Upsun project includes a fixed amount of build resources per month:
- 2.5 hours of build CPU
- 5 hours of build memory
You can adjust the amount of build resources that a project can use.
- Navigate to your project.
- Access the project settings.
- Expand the Project Setting accordion and click Resources.
- Enter the amount of CPU and RAM that your build containers can use.
- Click Save.
-
Run the following command:
upsun resources:build:set
-
Enter the amount of CPU.
-
Enter the amount of RAM.
Additional build resources (CPU and RAM) are billed by the hour. For more information on the costs incurred, see the Upsun pricing page.
Note
Make sure that your build process supports using extra build resources. Otherwise, the duration of your builds will remain the same despite adding more resources.