我按照以下步骤在暂存环境中安装了 MailHog:
sudo apt-get -y install golang-go
go get github.com/mailhog/MailHog
为了手动启动我做的服务:
cd ~/go/bin
./MailHog
由于我使用的是 Laravel,我已经supervisor
为工人跑步了。我想知道是否有办法添加一个新.conf
文件来启动 MailHog。
我试图了解 Laravel 工人是如何开始的,但到目前为止还没有运气
[program:mailhog]
process_name=%(program_name)s_%(process_num)02d
command=~/go/bin/MailHog
user=ubuntu
stdout_logfile=/var/www/api/storage/logs/mailhog.log
mailhog:mailhog_00: ERROR (no such file)
当我尝试启动主管时,我得到了。
无论我需要主管还是通过服务,我都需要一种自动启动 MailHog 的方法。
如果您能从主管或使用服务提供启动 MailHog 的“秘诀”,我将不胜感激。