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

Deploy build #27

Closed
kulpreet opened this issue Jan 15, 2018 · 7 comments
Closed

Deploy build #27

kulpreet opened this issue Jan 15, 2018 · 7 comments
Assignees

Comments

@kulpreet
Copy link
Contributor

Build a version of the demo and deploy it on IPFS. Once ready, we will publish it so that demo.chlu.io loads that build

@fazo96
Copy link
Collaborator

fazo96 commented Jan 15, 2018

Looks like the build fails because of multiformats/js-cid#38

I'll see what the best workaround is

@fazo96
Copy link
Collaborator

fazo96 commented Jan 15, 2018

@fazo96
Copy link
Collaborator

fazo96 commented Jan 18, 2018

So the build fails due to

@kulpreet I am looking at all the options to solve this. Here is what we can do:

Short Term:

Long Term:

react-scripts 2.0 will use uglify-es instead of uglify solving this problem completely. The change is already implemented in the alpha, it will also support targeting older browsers which will take care of compiling subdependencies of ipfs automatically facebook/create-react-app#3815

Looks like the alpha works, but new issues show up:

@kulpreet
Copy link
Contributor Author

kulpreet commented Feb 5, 2018

  • setup subdomain demo
  • dns link to server demo from ipfs hash
  • provide a deploy script - which npm run deploy - which runs ipns publish and voila

@fazo96
Copy link
Collaborator

fazo96 commented Feb 6, 2018

The IPFS ID of the node we are running on EC2 is QmYkctX9Wg5g2mBD8mnnNiCQE5toy3RqAkmzAmGEXY4dVU

this means that dnslink=/ipns/QmYkctX9Wg5g2mBD8mnnNiCQE5toy3RqAkmzAmGEXY4dVU is what needs to be stored into the TXT record for the domain. The A records need to point to IPFS gateway(s) reachable on port 80, we can use the public ones without any issues (check dig +short gateway.ipfs.io for IP addresses).

When we want to update the demo we just need to publish a new version using IPNS from the EC2 and that's it. We can backup the private key so that we don't risk losing access to making new publications.

When I was making the first build I created chlu.ydns.eu to try out the dnslink functionality, and it still works even though it's an old build and does not use IPNS or HTTPS

@kulpreet can you set up the domains and the dnslink? I can work on the deploy script in the meantime

Another thing to consider: we need to use hashHistory I think. I'll make a couple of tests to see if browserHistory works but I suspect it won't

@fazo96
Copy link
Collaborator

fazo96 commented Feb 26, 2018

@fazo96
Copy link
Collaborator

fazo96 commented Mar 7, 2018

New build: https://ipfs.io/ipfs/QmYsqputTd3v84nEDKkgTN34ePuM5CZxM49yCPh8Hv5MFA

This is based on master as of now with a small change that disables all rendezvous servers except ws-star-signal-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants