Symfony-2 - Location of assets

0

My application is being made using Symfony-2, and this application I will not distribute.

Ideally, should I keep my assets in AppBundle/Resources/public/ and apply console assets:install , or should I leave my assets straight in web/bundles/app/ so I do not need to apply console assets:install ? (Remembering that I will not distribute this application)

As I will not distribute this application, what advantages and disadvantages do I have in these two different places?

    
asked by anonymous 10.03.2016 / 20:15

1 answer

1

The two are valid, but since you are not going to distribute the application it is more comfortable for you to leave in /web directly. If you leave the AppBundle/Resources/Public/... folder you will need to run the app/console assets:install --symlink --relative command whenever you change something in the file, which in your case is unnecessary.

The good practices of symfony says that it is to put in the / web folder Symfony best pratices

    
14.03.2016 / 21:25