If the publication on the Verdaccio is failing, check that the npm config is well set:
- Connect to the git server on a HVD
- It should have this content:
@shared-components:registry=https://10.190.68.214/verdaccio/
//10.190.68.214/verdaccio/:_authToken="<TOKEN>"
strict-ssl=false
https-proxy=http://proxy-bru.adroot.local:8080/
proxy=http://proxy-bru.adroot.local:8080/
npm config explanations:
- The
<TOKEN>can be generated bynpm login --registry={verdaccio url} --scope=@shared-components - You will find the internal IP of your verdaccio
strict-ssl=falseavoids some certificate issues while connecting to the Verdaccio
If you wish to access Verdaccio's config:
ssh uat1cat /soft/wordpress/home/tuuatapi/.config/verdaccio/config.yaml
-
Ask the Shared Components team to add your SSH key on the server.
-
Connect by ssh:
ssh ubuntu@{your verdaccio url}-
Verdaccio:
/var/log/verdaccio.out.logand/var/log/verdaccio.err.log -
Nginx:
/var/log/nginx/error.logand/var/log/nginx/access.log
-
Verdaccio:
/home/ubuntu/.config/verdaccio/config.yamlAfter modifying the config, restart it with:
sudo supervisorctl restart verdaccio
Check that it's running with:
sudo supervisorctl status verdaccio
-
Nginx:
/etc/nginx/nginx.confAfter modifying the config, restart it with:
sudo service nginx reload