Reputation: 66460
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
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
Reputation: 66460
I realized I have to access the dev page with app_dev.php
:
localhost:8000/app_dev.php/
Upvotes: 0