-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate "update IPNS process" for Castor #4
Comments
For quick ref var ipfsAPI = require('ipfs-api')('/ip4/127.0.0.1/tcp/5001')
ipfsAPI.files.stat('/npm-registry', function (err, res) {
if (err) {
return console.log(err)
}
ipfsAPI.name.publish('/ipfs/' + res.Hash, function (err, res) {
if (err) {
return console.log(err)
}
})
}) |
@whyrusleeping when doing a |
Does it already do that? It might make sense to update IPNS in batches.
Agreed |
part I: #23 |
castor id:
QmdNc4B89DxVeiuDKRN5bWdKsAPCmekgmJMkRSdUNa7x9z
castor multiaddr:
/ip4/37.59.33.238/tcp/4001/ipfs/QmdNc4B89DxVeiuDKRN5bWdKsAPCmekgmJMkRSdUNa7x9z
registry-mirror --ipfs --clone
must auto update the IPNS name each time the mirror of the registry is updated. In ipfs CLI commands, this would be:ipfs name publish /ipfs/`ipfs files stat /npm-registry | head -n1`
The text was updated successfully, but these errors were encountered: