Create or Update
The Code Version Create & Update functionality allows users to create new code versions or modify existing ones for deployment on WHM cPanel. Both actions are performed on the same page, with the only difference being whether the fields are blank (create) or pre-filled (update).
When Creating a Code Version
- Accessed by clicking the Create button located at the top-left corner of the Code Version page.
- A new popup opened where the user must enter code version details.
- All fields are empty by default.
When Updating a Code Version
- Accessed by clicking the Edit button in the Action column of the code version list.
- The same page opens, but with pre-filled values from the selected code version.
- The user can modify fields and update the code version.
Fields
-
Code Version Title (required)
A short name to identify the code version. -
Websites (required)
Select one or more websites where this code version will be deployed. -
Choose Zip Code Files (required)
Upload the zip file containing the code to be deployed. -
Status
Indicates if the code version is active or inactive. -
Htaccess
Option to include or configure an.htaccessfile for the deployment.
Saving the Code Version
When the Save button is clicked, the system will validate all required fields and either create a new code version or update an existing one for deployment.
SQL Queries
-- Create (Insert) Code Version Query
-- (Write insert query here)
-- Update Code Version Query
-- (Write update query here)