Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Script Tags from localhost? by jahbrewski

$
0
0

I cannot get Script Tags to load from localhost:
      ss = ShopifyAPI::ScriptTag.create({:src => "http://localhost:3000/assets/javascripts/modal.js", :event => 'onload'})
However, I got them to load after uploading to AWS:
      ss = ShopifyAPI::ScriptTag.create({:src => "https://s3.amazonaws.com/echome/modal.js", :event => 'onload'})
This doesn't work well for development though -- I need to load the scripts to AWS every time I make changes. What am I missing here? There must be a better way.


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>