Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5188 Remove the dependency on the shared storage for downloads. #3087
Conversation
zz9pzza
added some commits
Sep 28, 2017
| - html = render_to_string(template: "downloads/show.html", layout: 'barebones.html') | ||
| - | ||
| + def create_work_html | ||
| + return if File.exists?("#{@work.download_basename}.html") |
| # write to file | ||
| - File.open("#{@work.download_basename}.html", 'w') {|f| f.write(html)} | ||
| + File.open("#{@work.download_basename}.html", 'w') {|f| f.write(create_work_html_string)} |
| @@ -838,7 +838,7 @@ def remove_outdated_downloads | ||
| # spread downloads out by first two letters of authorname | ||
| def download_dir | ||
| - "#{Rails.public_path}/#{self.download_folder}" | ||
| + "/tmp/#{self.id}" |
ariana-paris
changed the title from
AO3-5188 Remove the dependancy on the shared storage for downloads.
to
AO3-5188 Remove the dependency on the shared storage for downloads.
Sep 29, 2017
sarken
added
the
Awaiting review
label
Sep 30, 2017
elzj
merged commit 71b0560
into
otwcode:master
Oct 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zz9pzza commentedSep 29, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5188
Purpose
Remove the dependancy on the shared storage.
Testing
Do downloads work ?