Fixing nightly Shindig build

Update: Instead of the following, which assumes you’re running containers off the filesystem, you should really run them off the web server. So the recommended way to run Shindig’s sample container is “jetty:run-war” (not documented in the README, but my alert colleague located it on the mailing list). Then point to http://localhost:8080/gadgets/files/container/sample2.html.

I checked out the latest version today (628639) and FWIW these are the changes I made to the sample container to get it running (same as a week or so earlier):

Add libraries to HTML (e.g. sample1.html):

  1. <script type="text/javascript" src="../../features/core/core.js?c=1"></script>
  2. <script type="text/javascript" src="../../features/core/util.js?c=1"></script>

Edit rpc path (e.g. sample1.html):

  1. <script type="text/javascript" src="../../features/rpc/rpc.js?c=1"></script>

Edit default server base in gadgets.js

javascript

  1. // assumes you're running jetty gadget server locally.
  2. this.serverBase_ = "http://localhost:8080/gadgets/";
  3. // or if you're too lazy ;) to serve them yourself, Google is your friend ...
  4. this.serverBase_ = "http://www.gmodules.com/ig/";

Leave a Reply