CleanAssetsCommand assets is console yii script to clean assets folder.
I use this script to clean project /assets
folder by my cronbot once a month.
You can use it simply from command line or with cron actions.
Usage ¶
- Copy CleanAssetsCommand to
application.commands
folder - run
yiic help cleanassets
to see how to use this script
Command line arguments ¶
--auto - makes script to run in silent mode;
--dir=/path/to/dir - specifies path to directory. If blank - system default path will be applied;
Useful info: ¶
cleanassets on GitHub
How to Run Yiic directly from your app without a shell by jacmoe
Nice one!
Awesome! This goes right into Bugitor. :)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.