title: serving static assets in production in aws ec2 instance
body: <p>I have a rails app which depends on a mithril library that I have created. That mithril library is the heart of the app. From that library, vdom are rendered and models are rendered. The library is installed into my app via bower. </p>
  
  <p>In my mithril lib, I have called images like this </p>
  
  <pre><code>m('img.u-marginbottom-10[alt=\'Icon blog\'][src=\'/assets/icon-blog.png\']')
  </code></pre>
  
  <p>In the dev env, this is working fine however when I push it to prod env these links just break.</p>
  
  <p>I know that it is happening because rails assets pipeline adds digest to those image files. Is there any way I can reference it?</p>
  
  <p>In Heroku, because of rails12_factor gem, the assets are delivered without a problem but I am migrating the app to aws server and I am getting this issue</p>