A Bower resolver to allow integration with a RhodeCode repository
npm install -g bower-rhodecode-resolver
In order to use Bower with Rhodecode you need 2 components (npm packages):
- bower-rhodecode-resolver - A Bower resolver to allow integration with a RhodeCode repository
- bower - Bower version 1.5.0 and above.
Edit your ~/.bowerrc and add:
...
"resolvers": [
"bower-rhodecode-resolver"
],
"rhodecode": {
"token": "1234567890asdfghjklzxcvbnm",
"repo": "www.your-rhodecode-repo.com"
}
...
As explained in the rhodecode documentation, each user can find his own token on the rhodecode repository web site under: Username -> My Account -> Auth tokens
As explained on the rhodecode docs, you have to enable rhodecode.lib.auth_modules.auth_token
plugin.
If it doesn't work, maybe you have to change some parameters on your rhodecode instance.
As explained on the Rhodecode support site, you have to change in rhodecode.ini the value of
api_access_controllers_whitelist = ChangesetController:changeset_patch, ChangesetController:changeset_raw, FilesController:raw, FilesController:archivefile
.