Onebox engine is working within onebox rake server but not within discourse


(Eric Vantillard) #1

I could not make my simple onebox plugin working on discourse

Notes:

  • Same code is working using the onebox test server
  • Regexp was tested

My onebox whitelist :


(Eric Vantillard) #3

I will try using Discourse.Markdown.whiteListIframe

https://github.com/lidel/discourse-openstreetmap/blob/master/assets/javascripts/iframe_whitelist.js


(Eric Vantillard) #4

Same result without success.


(Eric Vantillard) #5

after recreating entire discourse db, the plugins works has expected :pensive: .

What are the required steps (in vagrant) to uninstall a plugin ?

same question after updating the plugins code ?


(Sam Saffron) #6

My guess is

rm -fr tmp/cache

was needed for some reason.


(Eric Vantillard) #7

I have used rake assets:clean

but rm -fr tmp/cache seems needed


(Sam Saffron) #8

I keep needing that when I update translations on the solved plugin, we will get it fixed cause its real annoying on dev.

cc @eviltrout


(Eric Vantillard) #9

and howto update existing posts with the new plugins version ?

(rake posts:rebake and rebuilding html will not use the updated plugin).


(Sam Saffron) #10

hmmm rake posts:rebake should work just fine