Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watching For Changes #3

Open
russweas opened this issue Mar 25, 2015 · 4 comments
Open

Watching For Changes #3

russweas opened this issue Mar 25, 2015 · 4 comments
Assignees

Comments

@russweas
Copy link

Is there a way you can make the artisan command watch for changes then make the assets? Like this http://symfony.com/doc/current/cookbook/assetic/asset_management.html#dumping-asset-files ?

@mattrmiller
Copy link
Owner

Yes, this is something that I plan to implement into Potion.

@russweas
Copy link
Author

Mind if I make a PR and try it myself?

@mattrmiller
Copy link
Owner

Absolutely. That would be great! From my experience folder changes in PHP vary depending on OS. Some OS's will report a file change up the chain of folders to the parent folder you are watching. Some do not. Meaning, if there is a change two sub directories deep from the folder you are watching, the modified time will be populated up to the folder you are watching only in some OS's.

So finding the correct way in PHP to watch for folder modifications will be crucial for this approach.

@russweas
Copy link
Author

I found this package on packagist. It looks like it will work but it will need testing.

https://github.com/crodas/WatchFiles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants