k0pernikus
k0pernikus

Reputation: 66460

How to get assetic to update assets in dev enviroment in symfony2?

I have the issue that my assets, e.g. my sass and javascript, did not recompile on file modification. I installed I accessed them via symlink option and access the dev environment via localhost:8000. I have to manually call /app/console assetic:dump for them to update.

How do I get assetic to watch for file modification?

Upvotes: 0

Views: 164

Answers (3)

TroodoN-Mike
TroodoN-Mike

Reputation: 16165

You can also use

php app/console assetic:dump --watch

If you want to watch for file modifications. This will re-run assetic:dump in the background automatically for you.

And yes dont forget if you use dev then access your site via app_dev.php

And small note... when you use production environment then make sure you execute assetic:dump with --env=prod (without --watch as well)

Upvotes: 1

Victor Bocharsky
Victor Bocharsky

Reputation: 12306

Try to execute:

php app/console assetic:dump --env=dev

Upvotes: 0

k0pernikus
k0pernikus

Reputation: 66460

I realized I have to access the dev page with app_dev.php:

localhost:8000/app_dev.php/

Upvotes: 0

Related Questions