I use composer to install symfony-demo. (It's symfony demo project for learning and teaching)
I'm using symfony-demo repository.
I'm on a windows machine. Running php 7.
Installed folder is c:\www\symfony-demo\ Apache is installed and c:\www is root folder. loading http://localhost/symfony-demo/web works. The symfony application works.
However the assets like "/build/css/app.css" fail to load. The error status is 404 Not Found.
I think this is because I'm in a subdirectory of the root folder.
I've also tested running php bin/console server:run and testing it on 127.0.0.1:8000 but the results are the same. The css and js resources fail to load.
I'm comfortable editing Apache's .htaccess file. What am I missing? How do I either configure Apache or Symfony to find these resources?
php bin/console assets:install? All resources (css, js, images) often is stored in the bundles folder (like in src/AppBundle/Resources/public). But this folder is not public (despite the public folder name) and you need to "transfer" all this resources to the real public folder, that is in web directory. When you run the assets:install command it does the job.