Closed jsasdw1991 closed 6 years ago
由于kindeditor自身的原因,没法用这个特性,所以我的做法是索性把这些文件拷贝到公共文件夹,代码如下
namespace :kindeditor do
desc "copy kindeditor into public folder"
task :assets do
puts "copying kindeditor into public/assets folder ..."
dest_path = "#{Rails.root}/public/assets"
FileUtils.mkdir_p dest_path
FileUtils.cp_r "#{RailsKindeditor.root_path}/vendor/assets/javascripts/kindeditor/", dest_path
end
end
所以,看看你的问题在哪里,再排查一下。
@Macrow 时间比较急,跟你方法差不多,也是直接拷贝。比较暴力,scp。😂
rails 5.0.5 跟 rails_kindeditor在产品模式下出现错误:
然后根据readme.md 已经执行过
也在
config/initalizers/assets.rb
里边添加了用的是nginx。 然后到线上查了一下。发现访问编译后的文件是可以的。
想问一下这个问题怎么解决