shoesrb.com icon indicating copy to clipboard operation
shoesrb.com copied to clipboard

Assign a subdomain for downloads

Open wasnotrice opened this issue 11 years ago • 9 comments

Since we made this website static, we have lost the ability to easily host files for download. See shoes/furoshiki#5

What do we think about using a subdomain to host downloads?

Options:

  1. point download.shoesrb.com at an S3 bucket.

    Pro: simple

    Con: difficult to publish static links, e.g. http://download.shoesrb.com/shoes/latest/windows

  2. make download.shoesrb.com a web service

    Pro: we can do whatever we want with urls

    Con: now we have a web service to maintain again

Thoughts? Other ideas?

wasnotrice avatar Jun 24 '13 13:06 wasnotrice

  1. point download.shoesrb.com at an s3 bucket, make http://shoesrb.com/shoes/latest/windows point at http://downloads.shoesrb.com/windows/whatever.exe

?

steveklabnik avatar Jun 26 '13 19:06 steveklabnik

I'm not sure how to do that when shoesrb.com is hosted on github pages :(

wasnotrice avatar Jun 27 '13 01:06 wasnotrice

Meta redirect JavaScript redirect

When good ol dns isn't available ill trade pretty for it-works

Thoughts?

Sent from my iPad

On Jun 26, 2013, at 8:36 PM, Eric Watson [email protected] wrote:

I'm not sure how to do that when shoesrb.com is hosted on github pages :(

— Reply to this email directly or view it on GitHub.

pjfitzgibbons avatar Jun 27 '13 04:06 pjfitzgibbons

JS redirect isn't an option for our HTTP client... and I also think Meta redirect isn't?

(e.g. we want to get that URL with ruby's http library not a web browser...)

What we could do is have shoesrb.com/shoes/latest/sows-windows.exe always be the most current windows shoes release etc.

PragTob avatar Jun 27 '13 11:06 PragTob

We could do some work to detect that case. If the response type is text/html then parse it and look for a meta-redirect. Not the prettiest but not too hard to make that work.

The other option would be something like Mechanize which follows meta-redirects out of the box, but that's an unnecessary dependency for our limited use case.

On 27 June 2013 13:22, Tobias Pfeiffer [email protected] wrote:

JS redirect isn't an option for our HTTP client... and I also think Meta redirect isn't?

(e.g. we want to get that URL with ruby's http library not a web browser...)

What we could do is have shoesrb.com/shoes/latest/sows-windows.exe always be the most current windows shoes release etc.

— Reply to this email directly or view it on GitHubhttps://github.com/shoes/shoesrb.com/issues/41#issuecomment-20112052 .

plexus avatar Jun 27 '13 12:06 plexus

Anyone know if you can set up S3 paths to do redirects?

http://download.shoesrb.com/windows -> http://download.shoesrb.com/windows/whatever.exe

wasnotrice avatar Jun 27 '13 18:06 wasnotrice

So: https://github.com/blog/1547-release-your-software

Does this help?

steveklabnik avatar Jul 05 '13 16:07 steveklabnik

It might.

jrgifford avatar Jul 05 '13 16:07 jrgifford

I posted a solution over at #34.

JesseHerrick avatar Aug 18 '14 01:08 JesseHerrick