dev_course
SylorHuang 6 years ago
parent 05d0bb7c1a
commit 262c3bf78a

@ -21,7 +21,6 @@ class ZipsController < ApplicationController
file_name = filename_for_content_disposition(exercises.filename) file_name = filename_for_content_disposition(exercises.filename)
send_file exercises.ex_zip, filename: file_name, type: 'application/zip' send_file exercises.ex_zip, filename: file_name, type: 'application/zip'
Rails.logger.info("##################_______________________file_name___________1100101010010__________###########")
rescue Exception => e rescue Exception => e
normal_status(-1, e.message) normal_status(-1, e.message)

@ -1,6 +1,6 @@
PDFKit.configure do |config| PDFKit.configure do |config|
config.wkhtmltopdf = ENV["WKHTMLTOPDF_EXEC"] || 'wkhtmltopdf' # config.wkhtmltopdf = ENV["WKHTMLTOPDF_EXEC"] || 'wkhtmltopdf'
# config.wkhtmltopdf = ENV["WKHTMLTOPDF_EXEC"] || '/usr/bin/wkhtmltopdf' config.wkhtmltopdf = ENV["WKHTMLTOPDF_EXEC"] || '/usr/bin/wkhtmltopdf'
config.default_options = { config.default_options = {
encoding: "UTF-8", encoding: "UTF-8",
page_size: 'A4', page_size: 'A4',

Loading…
Cancel
Save