How to start mailcatcher when booting vagrant box

2019-06-18 16:43发布

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条回答
可以哭但决不认输i
2楼-- · 2019-06-18 17:00

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.

查看更多
登录 后发表回答