shoesrb.com
shoesrb.com copied to clipboard
Assign a subdomain for downloads
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:
-
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
-
make
download.shoesrb.com
a web servicePro: we can do whatever we want with urls
Con: now we have a web service to maintain again
Thoughts? Other ideas?
- point download.shoesrb.com at an s3 bucket, make
http://shoesrb.com/shoes/latest/windows
point athttp://downloads.shoesrb.com/windows/whatever.exe
?
I'm not sure how to do that when shoesrb.com is hosted on github pages :(
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.
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.
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 .
Anyone know if you can set up S3 paths to do redirects?
http://download.shoesrb.com/windows
-> http://download.shoesrb.com/windows/whatever.exe
So: https://github.com/blog/1547-release-your-software
Does this help?
It might.
I posted a solution over at #34.