Would love to see options to (temporarily) disable redis, mailhog, rabbitmq and varnish.
Starting and running these only use up time and memory when not always needed.
I agree that this would be a nice addition. For now, you can disable Redis for example by changing <true /> to <false /> in ~/Library/LaunchAgents/homebrew.mxcl.redis.plist underneath RunAtLoad.
Thanks, but that doesn't work.
It just overwrites the file with it set to <true/> again after doing a valet start.
(Yes, I first did a valet stop, then changed those plist files).
Also, there are only plist files for redis and mailhog. Not for rabbitmq and varnish.
Something like this would be awesome:
valet start --no-redis --no-mailhog --no-rabbitmq --no-varnish
I see support for this has just been added by @mischabraam:
valet mailhog stop
https://github.com/weprovide/valet-plus/commit/93c4cf6ddd6bcbeb50228acc27cb788a321af85d
Can the same be added for these?
valet redis stop
valet rabbitmq stop
valet varnish stop
@regularlabs, yes, the intention is to do that indeed. Will do that pretty soon.
EDIT: btw it's going to be valet mailhog off|disable|on|enable
Ok, very nice :)
valet mailhog off|disable|on|enable is now available in version 1.0.20. Can you please let me know how this works out for you?
After updating valet I get this error on all valet commands:
Could not open input file: /cli/valet.php
@regularlabs sad to hear. Can you join us @ Slack? https://valet-plus.slack.com, https://join.slack.com/t/valet-plus/signup
I don't have a weprovide.com email address or an invite.
Yeah I know, my mistake, changed it. Can you try https://join.slack.com/t/valet-plus/signup
This team's administrator has not enabled email signups.
Ok, issue with my valet setup has been fixed by you guys (thanks!)
I can confirm that valet mailhog on and valet mailhog off work.
Mailhog gets added/removed from the (re)start list when doing a valet start too.
So all good.
➜ ~ valet mailhog on
[mailhog] Restarting
➜ ~ valet start
[dnsmasq] Restarting
[nginx] Restarting
[[email protected]] Restarting
[redis] Restarting
[mailhog] Restarting
[rabbitmq] Restarting
[varnish] Restarting
Valet services have been started.
➜ ~ valet mailhog off
[mailhog] Stopping
➜ ~ valet start
[dnsmasq] Restarting
[nginx] Restarting
[[email protected]] Restarting
[redis] Restarting
[rabbitmq] Restarting
[varnish] Restarting
Valet services have been started.
valet redis on|off
valet varnish on|off
valet rabbitmq on|off
Added in 4a00ec1fab7d0803d22eb1744febf08cb97c5a99, will be in next release
Very cool :)
Available in 1.0.21
All seems good.
tested:
valet mailhog on/off
valet redis on/off
valet rabbitmq on/off
valet varnish on/off
Much better:
➜ ~ valet start
[dnsmasq] Restarting
[nginx] Restarting
[[email protected]] Restarting
Valet services have been started.
:)