1
簡單,我試圖用服務beanstalkd排隊的電子郵件和supervisord像這樣:Laravel 4.2電子郵件::隊列資產
Mail::queue('emails.congratulations', $user, function($message) use($user) {
$message->to($user['email'], $user['name'])
->subject('Congratulations!');
});
我的上司程序配置:
[program:emailservice]
command=php /path/to/laravel/artisan queue:listen
stdout_logfile=/path/to/laravel/app/storage/logs/emailservice_supervisord.log
redirect_stderr=true
在我的刀片文件我試圖訪問資產,圖像:
<p>
<img src="{{ asset('assets/img/logo.png') }}" />
</p>
當發送和接收電子郵件時,圖像是破碎和URL的圖像看起來是這樣的:
<img src="http://:/assets/img/logo.png"/>
我想不通爲什麼所訪問的:
如果任何人所經歷的這種行爲也將是很好的開放,因爲得到了這一點我已經搜索谷歌和StackOverflow的問題的答案沒有提到任何問題。
我問自己的一個問題......排隊時,Laravel/Supervisor/Beanstalk是否足夠聰明,可以記住工作領域?
是的,我們有''url'=>'http:// domain.com',但助手函數仍然使用'**:**'。它甚至不使用'http:// localhost'。該URL看起來像這個'' – 2014-10-09 15:24:50