diff --git a/hyrax/config/initializers/hyrax.rb b/hyrax/config/initializers/hyrax.rb
index 44cb7c1a2b73657f485e86e23a9d94af1814a96a..b5023c5029c26b433dc689a54339bd004c071973 100644
--- a/hyrax/config/initializers/hyrax.rb
+++ b/hyrax/config/initializers/hyrax.rb
@@ -53,7 +53,7 @@ Hyrax.config do |config|
   # config.temp_file_base = '/home/developer1'
 
   # Hostpath to be used in Endnote exports
-  # config.persistent_hostpath = 'http://localhost/files/'
+  config.persistent_hostpath = "#{ENV['APPLICATION_URL'] || 'http://localhost'}/files/"
 
   # If you have ffmpeg installed and want to transcode audio and video set to true
   config.enable_ffmpeg = true