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

Add mage2tv/magento-cache-clean #92

Closed
peterjaap opened this issue Apr 4, 2019 · 6 comments
Closed

Add mage2tv/magento-cache-clean #92

peterjaap opened this issue Apr 4, 2019 · 6 comments

Comments

@peterjaap
Copy link
Contributor

Now Vinai has made mage2tv/mage-cache-clean working with Docker (see mage2tv/magento-cache-clean#31), we can incorporate this into our dev environment so it's globally available!

@JeroenBoersma
Copy link
Owner

I've tested this on #95
So, please checkout this branch to get node up-and-running

I'll suggest we do this the same as for all the scripts we use.

# Install globally
dev php composer global require mage2tv/magento-cache-clean
## Navigate to your Magento2 base-dir
# In your project create the var/cache-clean-config.json
dev php /data/.composer/vendor/mage2tv/magento-cache-clean/bin/generate-cache-clean-config.php
# Run to start watching
dev node .composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js --watch

After this add this to your .aliases file:

cache-clean.js () {
	dev php /data/.composer/vendor/mage2tv/magento-cache-clean/bin/generate-cache-clean-config.php
	dev node /data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js "$@"
}

@JeroenBoersma
Copy link
Owner

If this works I need to finalize some minor things for node, and will merge with upstream.

@JeroenBoersma
Copy link
Owner

I've merged node support with master...

We should update the docs thought

@govereem
Copy link

govereem commented Jun 19, 2019

Small update:

# Install globally
dev composer global require mage2tv/magento-cache-clean
## Navigate to your Magento2 base-dir
# In your project create the var/cache-clean-config.json
dev php /data/.composer/vendor/mage2tv/magento-cache-clean/bin/generate-cache-clean-config.php
# Run to start watching
dev node  /data/.composer/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js --watch

After adding the function cache-clean.js to your alias file (~/.zshrc), you can run cache-clean.js --watch in your magento 2 root.

@peterjaap
Copy link
Contributor Author

Nice! 🎉

@WouterSteen
Copy link
Contributor

❤️

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

No branches or pull requests

4 participants