How to start mailcatcher when booting vagrant box

2019-06-18 16:14发布

问题:

I need to start the mailcatcher as the vagrant up is done.

I tried setting provision for the vagrant machine

config.vm.provision "shell", inline: 'mailcatcher --ip=0.0.0.0'

But it says unidentified command mailcatcher

回答1:

MailCatcher has to be started via /usr/bin/env mailcatcherso

config.vm.provision "shell", inline: '/usr/bin/env mailcatcher --ip=0.0.0.0'

should work.