Symfony-2 - Location of Assets

Asked

Viewed 36 times

0

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

Ideally I keep my Assets on AppBundle/Resources/public/ and keep applying console assets:install, or ideally I leave my Assets straight on web/bundles/app/ so you don’t have to apply console assets:install? (Remembering that I will not distribute this application)

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

1 answer

1


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.