title: Symfony2 / prod : css & javascript filename not generated
body: <p>After moving my symfony2 app to production, my homepage and and links related to the frontend part work fine (domain.com/event/xxxx, domain.com/category/yyy etc). CSS &amp; JS are correctly loaded.
  However, my admin part which is accessible via domain.com/admin is not. When I check out the generated html, I find my CSS &amp; JS filenames are null.</p>
  
  <p>I am getting something like </p>
  
  <pre><code>&lt;link rel="stylesheet" href="/css/.css"&gt; 
  &lt;script src="/js/.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have cleared cache and dumped assetic :</p>
  
  <pre><code>./console cache:clear --env=prod --no-debug
  ./console assetic:dump --env=prod --no-debug
  </code></pre>
  
  <p>but nothing happens, the problem persists.</p>
  
  <p>BTW, clearing the prod cache displays weird lines that do not show I clear the dev cache, I get some output like this :</p>
  
  <pre><code>Clearing the cache for the prod environment with debug false Mac OS X           2??ATTR?????j?
                                    com.apple.TextEncoding?_de.codingmonkeys.seestatemacintosh;0d1:pd1:yi85e1:wi1572e1:xi32e1:hi922ee1:sd1:pi1245e1:li0ee1:ei1e1:li1919e1:m16:SEEMode.PHP-HTMLeThis resource fork intentionally left blank   ??Mac O
  </code></pre>
  
  <p>If you need to see my config files, just tell me which files you need and I will paste them.</p>
  
  <p>Any help please ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>ok I don't know if this is correct or not, but I found this <a href="https://stackoverflow.com/questions/13261562/assetic-not-creating-combined-links">Assetic not creating combined links</a></p>
  
  <p>and after changing 
      $kernel = new AppKernel('prod', false);</p>
  
  <p>by (the opposite of what is described in that link), it is working.
      $kernel = new AppKernel('prod', true);</p>
  
  <p>Can I keep it like that ?</p>