Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

symfony2 assets:install output directory

Tags:

symfony

I am trying to change the default "web" directory of symfony to something else for example public_html.

I got most of it working by following the manual here -> http://symfony.com/doc/master/cookbook/configuration/override_dir_structure.html

Very last part of that document explains how to change assetic so that assetic:dump will output to the correct directory, so that works, and the website also works.

However the document doesn't seem to explain how to change the output directory of the assets:install command.

When i run this command it still outputs to the web directory. Does anybody know how to change this ?

like image 499
Aaike Avatar asked Mar 07 '13 08:03

Aaike


2 Answers

assets:install requires a parameter telling where to install the assets:

app/console assets:install path

Just provide your path instead of web.

like image 188
Elnur Abdurrakhimov Avatar answered Nov 15 '22 10:11

Elnur Abdurrakhimov


You can set a path parameter to assets:install
But I think in some case better not overriding the directory structure, preferably making a symlink to the web dir.

like image 21
turbod Avatar answered Nov 15 '22 08:11

turbod