title: Problems with ckeditor running on production Rails application with Heroku
body: <p>I'm using the <strong>ckeditor</strong> gem in my <strong>Rails 4</strong> application.
  Everything works great locally and on my staging heroku environment, but I get this errors when pushing on the production environment :</p>
  
  <pre><code>GET http://myapp.herokuapp.com/assets/ckeditor/contents.css 404 (Not Found)
  GET http://myapp.herokuapp.com/assets/ckeditor/skins/moono/icons.png 404 (Not Found)
  </code></pre>
  
  <p>The editor shows up well, but all icons are missing.</p>
  
  <p>I followed the README (<a href="https://github.com/galetahub/ckeditor" rel="nofollow noreferrer">https://github.com/galetahub/ckeditor</a>), but I'm probably missing something.</p>
  
  <p>Here are my steps:</p>
  
  <p>1) Gem installation, generate etc ...</p>
  
  <p>2) <code>config.autoload_paths += %W(#{config.root}/app/models/ckeditor)</code> in application.js</p>
  
  <p>3) <code>mount Ckeditor::Engine =&gt; "/ckeditor"</code> in routes.rb (I don't understand why)</p>
  
  <p>4) In application.js</p>
  
  <pre><code>//= require ckeditor/override
  //= require ckeditor/init
  </code></pre>
  
  <p>What is this doing exactly, why is override needed ? (Where are located these files, because there are not in <code>/app/assets</code>, neither in <code>/lib/assets</code> neither in <code>/vendor/assets</code>)</p>
  
  <p>Heroku is read only oriented, therefore I can't run the rake task as explained in the tutorial.
  And I think this is why I get the errors in production mode.</p>
  
  <p>Did anyone faced the same problem ?
  I ran through all stackoverflow questions, but nothing resolved my problem so far.</p>
  
  <p><strong>UPDATE :</strong></p>
  
  <p>The only way I found out to make it works is the live compilation : <code>config.assets.compile = true</code> 
  But I would prefer not to use this in production, and I don't understand why it does work.</p>