Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 917
Alfie Avatar asked Jan 29 '15 13:01

Alfie


1 Answers

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.

like image 164
Thorsten Avatar answered Oct 31 '22 00:10

Thorsten