vagrantmailcatcher

How to start mailcatcher when booting vagrant box


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


Solution

  • 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.