title: Symfony2 on Heroku (official buildpack) - how to dump assets?
body: <p>I have a problem with Symfony assets on heroku (official php buildpack).
  My code is based on Symfony 2.5 with new 3.0 folder structure, and it's using one local js and css file (the rest is loaded via cdn).
  Those files are loaded exactly as described here: <a href="http://symfony.com/doc/current/cookbook/assetic/asset_management.html" rel="nofollow">http://symfony.com/doc/current/cookbook/assetic/asset_management.html</a>.</p>
  
  <p>On dev environment everything is ok, but when i change env to prod then i need to do assetic:dump to force symfony dump my assets files into web/css|js folders. I made test on my local machine (switching env to prod) and everything is ok. The problem is with heroku, and its ephemeral filesystem:</p>
  
  <p>When I try to run assetic:dump --env=prod by composer post-install-cmd, then deploy finish with successs, but every request ends up with:</p>
  
  <pre><code>AH01071: Got error 'PHP message: PHP Fatal error: Uncaught exception
  'InvalidArgumentException' with message 
  'The file "/tmp/build_012d99e7-a14a-4626-afec-3ded3d4baeec/app/config/routing.yml"
  </code></pre>
  
  <p>When i deploy app without assetic:dump then of course my local css and js files are not available :/</p>
  
  <p>Maybe there is some other script hook i can use to dump my assets? </p>
  
  <p>Any ideas? Anyone succeded with assetic:dump on heroku and official php buildpack?</p>