diff --git a/lib/exporter.rb b/lib/exporter.rb index e64b5558..8ee43e8f 100644 --- a/lib/exporter.rb +++ b/lib/exporter.rb @@ -133,7 +133,7 @@ class Exporter end def publish - `tar czvf #{Rails.root.join "public", "export", "#{@export_filename}.tar.gz"} -C /tmp/rs_export #{@export_dirname}` + `tar czvf #{Rails.root.join "public", "export", "#{@export_filename}.tar.gz"} #{@export_dirname}` url = "#{APP_CONFIG['https'] ? 'https' : 'http'}://#{APP_CONFIG['hostname']}/export/#{@export_filename}.tar.gz" @user.export_processing = false @user.export_url = url