When you create or update a Perl custom runtime on the Platform, you now have the option to provide the package and version requirements for the project in cpanfile
or meta.json
file format. You can copy and paste the contents of an existing file, or type in your project’s requirements in the required format.
To create a project from a cpanfile
or meta.json
file:
Navigate to your organization and create a new project by clicking Set up a new runtime. You must choose Perl as the language.
Click Import from META.json or cpanfile in the Requested Packages panel.
Open the requirements.txt
to use and copy and paste the content, or type in your requirements individually.
Click Import.
The Platform parses each entry in your requirements list, validates the syntax, and identifies any issues. When the file is valid, the platform attempts to match each package requirement with a package and version available on the platform.
If any errors or mismatches are identified between the requirements you have defined in your cpanfile
or meta.json
file and the package and versions available on the Platform, you may be able to adjust the package versions individually to create a valid build request.
Click Commit Changes. In Requested Packages you will see each package listed, along with the requested version and the version selected by the Platform to fulfill the requirement.
Click View Status to start the build and view the build progress. It may take some time for the build to succeed or fail, but you will receive an email notification when the build finishes.
Once the build completes successfully, you have two options for accessing your build:
To update an existing project using a cpanfile
or meta.json
file:
Navigate to the Perl project you want to update.
Click the Configuration tab.
Click Import from META.json or cpanfile in the Requested Packages panel.
Open the cpanfile
or meta.json
to use and copy and paste the content, or type in your requirements individually.
Click Import.