6

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

Alfie
  • 2,706
  • 1
  • 14
  • 28
  • how is mail catcher installed? My guess is that it isn't in your path, so just locate it and call it via it's full path and you should be ok. – Doon Jan 29 '15 at 13:53
  • i did, `gem install mailcatcher` – Alfie Jan 29 '15 at 13:54

1 Answers1

6

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.

Thorsten
  • 111
  • 2