galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.23k stars 878 forks source link

Config.js doesn't reload in production mode #855

Closed Maxhou00 closed 5 years ago

Maxhou00 commented 5 years ago

Hello,

I have added a custom plugin on CKEDITOR it work well on development mode and every time I update the config.js it reload correctly on my local environnement.

I have decided to deploy it on my server in production mode but I have no idea why my plugin doesn't appear in production mode.

In my config.js on my server I have this

{ name: 'insert', items: [ 'Imgur', 'tliyoutube2', 'linkfile'] },

but when I take a look in the source file in the inspector on my website I have

{ name: 'insert', items: [ 'Imgur', 'tliyoutube2'] },

I have precompiled the assets in production mode and I can find in public/assets/ckeditor/plugin the repository of my plugin linkfile.

Also if I take a look to public/assets/ckeditor/config.js I have the correct following line:

{ name: 'insert', items: [ 'Imgur', 'tliyoutube2', 'linkfile'] },

I tried to delete all my public/assets and clean the cache with RAILS_ENV=production rake assets:clean and RAILS_ENV=production rake tmp:cache:clear I also cleaned the cache by using Rails.cache.clear in the RAILS_ENV=production rails c.

And then precompile the assets again but it doesn't change the config.js in the inspector keep showing me:

{ name: 'insert', items: [ 'Imgur', 'tliyoutube2'] },

I restart my passenger server by doing touch tmp/restart.txt but I also did systemctl restart apache2

I have clear the cache in my browser but didn't work.

I have tried to do all of this manipulation by removing the youtube plugin

{ name: 'insert', items: [ 'Imgur'] },

And I kept having

{ name: 'insert', items: [ 'Imgur', 'tliyoutube2'] },

I have followed this but it didn't work for me.

CKEDITOR 4, RAILS 5