简体   繁体   English

轨道生产图像资产管道

[英]rails production images assets pipeline

I have a really weird production problem. 我有一个很奇怪的生产问题。 In the invitation mail that I have a little personalized, I added 5 images, they are all stored in the assets/images folder but in different sub-folders. 在个性化的邀请邮件中,我添加了5张图像,它们全部存储在资产/图像文件夹中,但存储在不同的子文件夹中。 I don't understand why, but the first three are displayed while the last two are not. 我不明白为什么,但是显示前三个而后两个却不显示。 In local and in the preview of the mail, everything works well. 在本地和邮件预览中,一切正常。

  <div id="body"> <div id="logo-container"> <%= image_tag("logo-trans-black.png", id: 'logo') %> </div> <div id="photo-container"> <%= image_tag("mail/photo_link.jpg", id: 'photo') %> </div> <div class="container" > <div class="row col-md-12 col-sm-12"> <h3 id="hello">Bonjour <%= @resource.firstname %> ! </h3> <p class="msg">Votre entreprise <%= @resource.company.name %> vous invite à découvrir llalalalalallallalalalalalalalaalalalalal.</p> <p class="msg">Vous pouvez dès à présent vous inscrire et commencez à partager vos lalalalalalallalaalalalalalalalalallalaal.</p> </div> <div id="button-container"> <p> <%= link_to accept_invitation_url(@resource, :invitation_token => @token) do %> <%= image_tag("mail/sign_in_button_link.jpg", id: 'sign-in') %> <% end %> </p> </div> </div> <div id="footer"> <div id="social-nw"> <%= image_tag("png/social-n/facebook-logo.png", id: 'facebook') %> <%= image_tag("png/social-n/linkedin-logo.png", id: 'linkedin') %> </div> <div id="address"> <p> Lalalala <br> lalal <br> 1lalalalalal </p> </div> <div id="condition"> <p> Vous recevez cet email en accord avec votre société qui nous a transmis votre adresse email. Pour accéder aux conditions de confidentialité des lalalaalalalal Si vous ne souhaitez plus recevoir d'emails de notre part, cliquez ici. </p> </div> </div> </div> 

In fact the problem was that my host assets was the production address while I was doing my tests on the stagging application so all the images were not available. 实际上,问题在于我在主机应用程序上进行测试时,我的主机资产是生产地址,因此所有图像都不可用。

Thanks anyway 不管怎么说,还是要谢谢你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM