<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000">Here's a PR that fixes the issue by going with method #2 that Chris mentioned: https://github.com/mozilla/fxa-content-server/pull/277<br><br>-z<br><br><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Chris Karlof" <ckarlof@mozilla.com><br><b>To: </b>"Gene Wood" <gene@mozilla.com>, "zcarter@mozilla.com Carter" <zcarter@mozilla.com><br><b>Cc: </b>dev-fxacct@mozilla.org<br><b>Sent: </b>Thursday, January 16, 2014 6:20:24 PM<br><b>Subject: </b>environment specific configuration of the FxA Content Server<br><br>We ran into a bit of snafu when Gene built and deployed the production RPMs for FxA.<div><br></div><div>The front end JS app for the fxa-content-server is compressed and combined into a single "bundle", but the bundle currently needs one bit of configuration, the URL of the auth server. Since the RPMs we build are environment agnostic, this configuration needs to be done after deployment and app start. </div><div><br></div><div>Here are some options:</div><div><br></div><div>1) Build a config.js on app deploy that contains the configuration we need. There is even some grunt magic to help manage this:</div><div><br></div><div><a href="http://newtriks.com/2013/11/29/environment-specific-configuration-in-angularjs-using-grunt/" target="_blank">http://newtriks.com/2013/11/29/environment-specific-configuration-in-angularjs-using-grunt/</a></div><div><br></div><div>2) Offer an endpoint on the fxa-content-server that serves JSON of the environment config. </div><div><br></div><div>3) Hack index.html at deploy time.</div><div><br></div><div>Zach is doing 2) to get the deploy working, but the longer term strategy is up for discussion. On a related note, we need to get our caching strategy ironed out.</div><div><br></div><div>We're hoping to get the deploy working tomorrow and test it against Nightly.</div><div><br></div><div>-chris</div><div><br></div></blockquote><br/></div></body></html>