Skip to content
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

Update arapp.json to include AragonPM IPFS gateway #61

Closed
wants to merge 1 commit into from

Conversation

0xGabi
Copy link
Contributor

@0xGabi 0xGabi commented Jun 16, 2019

Changes introduced in aragon/aragon-cli#519

@0xGabi 0xGabi requested a review from kernelwhisperer June 16, 2019 18:04
@@ -17,12 +17,22 @@
"appName": "placeholder-app-name.open.aragonpm.eth"
},
"rinkeby": {
"apm": {
"ipfs": {
"gateway": "https://ipfs.eth.aragon.network/ipfs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this change...

So apm publish will upload the artifacts to the default rpc: http://localhost:5001
And then in the last step (Fetch published repo), it will query this gateway for the artifacts.

Because the ipfs.eth.aragon.network node will need to fetch it from the local node, this might become very slow or even fail (if it takes more than 30m). 🤔

I just tried publishing this and the last step took 5 minutes.

The only benefit of adding this is that it propagates the content to the a1 gateway, but at the same time I feel like commands should be fast and not do too many things.

I think the apm.ipfs.gateway option is only useful for power users interacting with the dao commands, so they don't have to start their own ipfs node and worry about having the files locally, and not so much for developers that want to publish, for propagation they have the ipfs propagate command.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought It would be great to propagate as well when publish to Rinkeby or Mainnet. But it's a fair point to not include too much in one single command 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to propagate automatically, we should probably run the aragon ipfs propagate command on the published command rather than trying to fetch it from a specific gateway anyway.

Copy link
Contributor

@kernelwhisperer kernelwhisperer Jun 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's opt for this instead: aragon/aragon-cli#535

@0xGabi 0xGabi closed this Jun 17, 2019
@sohkai sohkai deleted the ipfs-gateway branch June 17, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants