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

Support some deployment options out of the box #9

Closed
Tracked by #1
bmann opened this issue Jul 20, 2022 · 13 comments · Fixed by #79
Closed
Tracked by #1

Support some deployment options out of the box #9

bmann opened this issue Jul 20, 2022 · 13 comments · Fixed by #79
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@bmann
Copy link

bmann commented Jul 20, 2022

We should support static deployment platforms and show some examples that can immediately be forked / deployed.

I’ll list a couple but we should probably just ask different people to PR different providers. eG @bmann can do the Heroku version

We already support netlify, we should definitely consider IPFS-based providers as a deployment target

TODOs:

  • Cloudflare Pages
  • Vercel

Maybe in the future:

  • Fleek
  • Render
  • Railway

Fission server (for dnslink) combined with Web3storage or Infura might be interesting to look at.

@bmann bmann added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels Jul 20, 2022
@jeffgca
Copy link
Contributor

jeffgca commented Jul 21, 2022

0.1 is scoped to publishing on Fission's publishing only.

@jeffgca jeffgca added this to the 0.2 Alpha 2 milestone Jul 21, 2022
@bgins
Copy link
Member

bgins commented Jul 21, 2022

Routing will likely be important for supporting these different platforms. Routify is a Svelte library that optionally supports hash-based routing: https://www.routify.dev/blog/routify-2-released#hash-based-routing.

We would want to use Routify V3, which is currently in Beta: https://v3.routify.dev/

@jessmartin
Copy link
Contributor

0.1 is scoped to publishing on Fission's publishing only.

Bringing down the Scope Creep Hammer. I like it.

@bmann
Copy link
Author

bmann commented Jul 22, 2022

Yep totally agree on scope! This more like a meta issue to look at different targets.

@gotjoshua
Copy link

Routify is a Svelte library that optionally supports hash-based routing:

Does this mean that this repo will soon be able to be deployed via ipfs?

@gotjoshua
Copy link

I’m going to just list a couple as inspiration

are github and gitlab pages also realistic (can the stack build to a static site)?

i'd also suggest adding a docker-compose example for self-hosted deployment.

@jessmartin
Copy link
Contributor

Does this mean that this repo will soon be able to be deployed via ipfs?

@gotjoshua By some definition of "soon", yes. @justincjohnson is working on a spec for IPFS that will support a _redirects file, which would allow for SPAs to be deployed via IPFS without hash-based routing.

We could look into hash-based routing, but haven't gotten to it yet. Routify introduces some complexity and we're trying to stick as close to vanilla Svelte as we can.

are github and gitlab pages also realistic (can the stack build to a static site)?

Yes! Svelte generates a static site. We could probably pretty quickly put together GitHub and GitLab pages examples.

i'd also suggest adding a docker-compose example for self-hosted deployment.

Feel free to create a separate issue for this one, it feels larger than the others.

@justindotpub
Copy link

justindotpub commented Sep 1, 2022

For details on redirects support, see ipfs/specs#290 and ipfs/kubo#8890. Per ipfs/ipfs-docs#1261 (comment) maybe in 0.16 🤞

@bgins
Copy link
Member

bgins commented Sep 21, 2022

Does this mean that this repo will soon be able to be deployed via ipfs?

Should be able to soon! See #66 for details.

@jeffgca
Copy link
Contributor

jeffgca commented Oct 25, 2022

@jessmartin Cloudflare Pages is a stretch goal

@jessmartin
Copy link
Contributor

We have Vercel and Cloudflare Pages working. Adding instructions to the README.

@gotjoshua
Copy link

Should be able

Would be perfect timing to get that ready during the ipfs camp as 66 is now merged

@jessmartin
Copy link
Contributor

@gotjoshua It works! We have it running on an IPFS gateway server right now at https://webnative-template.fission.app

Let me know if you run into any trouble!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants