Hacklone / private-bower

A simple private bower registry
Other
667 stars 131 forks source link

public.registry value on config file needs to be updated #265

Open Naxus28 opened 7 years ago

Naxus28 commented 7 years ago

I have tried for a couple of hours to register a private package with no success although I was following the docs. After many trial and errors I decided to visit the "public.registry" url provided in the docs --http://bower.herokuapp.com/packages-- which redirects to https://registry.bower.io/packages. I replaced public.registry's default value for https://registry.bower.io/packages and only then I was able to register my package.

{
   ...

    "public": {
        "disabled": false,
        "registry": "https://registry.bower.io/packages", // this line changed
        "registryFile": "./bowerRepositoryPublic.json",
        "whitelist": [],
        "blacklist": []
    },

   ...
}
davvvid1 commented 7 years ago

No, the client needs to follow redirects! https://github.com/Hacklone/private-bower/blob/master/lib/service/packageStores/publicPackageStore.js#L137

chrisse27 commented 7 years ago

But it doesn't. We also updated to the new URL and everything works again.

piermorosini commented 7 years ago

Does not work for me too.