title: Symfony4 Deployment with Encore
body: <p>The current <a href="http://symfony.com/doc/current/frontend/encore/faq.html" rel="nofollow noreferrer">documentation</a> says, that I only need the files under <code>public/build</code>, created with <code>./node_modules/.bin/encore production</code>, when I want to deploy for production. But also to add <code>public/build</code> to git ignore. Do I have to copy the content of <code>public/build</code> manually?</p>
  
  <p>In Symfony3 my deploy looked like that:</p>
  
  <p><code>git pull
  bin/php bin/console cache:clear --env=prod --no-debug
  bin/php bin/console assets:install --env=prod
  bin/php bin/console assetic:dump --env=prod --no-debug</code> </p>