Skip to content

Let user get any git version/fork at mathdown.net? #108

Closed

Description

@cben

This is not so much a Mathdown issue as dreaming "how would an ideal open source web app work"...

Users can "easily" launch a fork or older version on heroku or rhcloud, and visit https://MYFORK/?doc=SAME_ID
But in an ideal world, they would be able to set up the unmodified https://mathdown.net/?doc=SAME_ID url to serve their fork of choice!
In an ideal world, the app UI can show commit history and let users select any version (made sticky by cookie).
This has pros and cons for sharing urls...
But conceptually it's very elegant, in that there is a single URL for the document.

In practice, being able to login at any fork and see a list of your docs (#50) would be convenient enough.

Activity

  1. cben commented on Aug 12, 2015

    @cben
    OwnerAuthor

    A partial win would be just being able to "summon" any version by URL without any explicit deploy, a-la rawgit.com.

  2. cben commented on Dec 22, 2015

    @cben
    OwnerAuthor

    Aha! I don't technically need a hosting that can co-run all versions.
    It's enough that user is able to host any version somewhere (eg heroku); all I need to do is proxy/redirect to a user-provided URL!
    The central benefit is that ANY version (after the ability has been added) can proxy to ANY other version, independent of serving technology changes!

    (The top-level html page can't be an http redirect, must be proxied; but the *.js and *.css I think can be redirects? I'm not sure if that's good or bad for performance & caching. Also should verify the redirects are transparent to behavior e.g. relative @import...)

    An even cleaner idea: make ALL serving go through the proxy! Effectively all I need is create a FOSS-forking-friendly http router/frontend/load balancer/reverse proxy. And most probably it's not a matter of create, just configure!
    Plus: immutable deployments - create new app, flip the default route.
    Plus: everything that comes with a self-hosted router, e.g. fixed IP.
    Plus: cheaper TLS (verified TLS to real backend but can go to free/cheap subdomain eg. https://foo.herokuapp.com).

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions