This topic describes how to configure Hex local repository to deploy and resolve packages using Hex local repositories in Artifactory. It provides instructions to configure the mix client to deploy and resolve packages via Hex local repositories.
Connect your Mix client to the hex local repository.
Prerequisite
Download Public Key to Hex Project Folder
To set up your Mix client pointing to Hex local repository, use the following command from your project folder:
Refer to View Set Me Up Instructions - Hex Repository topic to view Configure code snippets.
Note
Make sure to replace the placeholders in bold with your token, JFrog domain name, port, and JFrog repository key. These placeholders are auto-populated if you copy the Set Up A Hex Client Configure code snippets from the UI.
Run the following command in the Hex project directory to add your Artifactory Local repository in the mix client:
mix hex.repo add <REPOSITORY_NAME> https:<YOUR_JFROG_DOMAIN>:<PORT>/artifactory/api/hex/<REPOSITORY_NAME> --auth-key "Bearer <TOKEN>" --public-key ./publickey.pem
For example:
mix hex.repo add hc-hex-local https://hexdemotest.jfrogdev.org/artifactory/api/hex/hc-hex-local --auth-key "Bearer cmVmdGtuOjAxOjE3Njc3MDUwOTg6dFFCMjlZTjl2SkGTUZadUQyelBv" --public-key ./publickey.pem
Note
Make sure that the publickey.pem
key is pointing to the correct location in your project.