<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">OK. [1] Copied that file into both {public,frontend}/lib/tasks , replacing the existing file. </div><div class=""><br class=""></div><div class="">[2] added these env settings to targets  frontend:war and public:war in build.xml </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="GEM_HOME" value="${gem_home}" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="GEM_PATH" value="" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="BUNDLE_PATH" value="${gem_home}" /></div><div style="margin: 0px; color: rgb(1, 149, 0); background-color: rgb(212, 192, 172);" class="">+      <env key="RAILS_RELATIVE_URL_ROOT" value="admin" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <arg line="--1.9 -S rake assets:precompile --trace" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     </java></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="GEM_HOME" value="${gem_home}" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="GEM_PATH" value="" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <env key="BUNDLE_PATH" value="${gem_home}" /></div><div style="margin: 0px; color: rgb(1, 149, 0); background-color: rgb(212, 192, 172);" class="">+      <env key="RAILS_RELATIVE_URL_ROOT" value="public" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">       <arg line="--1.9 -S rake assets:precompile --trace" /></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     </java></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">(did it need a leading or trailing slash ? )</div><div class=""><br class=""></div><div class="">[3] Built distribution, unzipped it an ran. Is that was I was supposed to do ? </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">output looks like the env values are getting passed in : </div><div class=""><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">public:war:</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [echo] Precompiling Rails assets for Public (this can take a little while...)</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] ** Invoke assets:precompile (first_time)</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] ** Execute assets:precompile</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] java -XX:MaxPermSize=128m -Xmx256m -cp /projects/Archivespace/dcs-archivesspace/public/../common:/projects/Archivespace/dcs-archivesspace/public/../build/jruby-complete-1.7.18.jar org.jruby.Main --1.9 -X-C -S rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets RAILS_RELATIVE_URL_ROOT=public</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] Using Node ExecJS runtime</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] Forcing Rails configuration</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] Using Node ExecJS runtime</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] Forcing Rails configuration</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] Creating public.war</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class="">     [java] rm -f public.war</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I Still get the same problems with the same set of assets. </div><div class="">It doesn’t appear to change the behavior at all. </div><div class=""><br class=""></div><div class="">Note that most of the assets have been loading correctly and still do. </div><div class="">It’s only that handful that don’t load. See screenshot below showing</div><div class="">correct URLs for one selected. It’s only the ones in red that aren’t loading</div><div class="">on that page.   </div><div class=""><br class=""></div><div class="">— Steve. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><img height="574" width="918" apple-width="yes" apple-height="yes" apple-inline="yes" id="883B8D31-D903-4E64-B799-65E75959639D" src="cid:98790676-9A85-4576-A33F-28808DABB1C4@Virginia.EDU" class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 23, 2015, at 11:40 PM, Chris Fitzpatrick <<a href="mailto:Chris.Fitzpatrick@lyrasis.org" class="">Chris.Fitzpatrick@lyrasis.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Steven,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Yeah, so the fix for this is you're probably going to have to precompile you assets again and pass in a relative url root. </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Something like this would work I think:</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><a title="Cmd+Click or tap to follow the link" id="LPlnk137198" href="https://gist.github.com/cfitz/8d5d65c30127ff69ff22" class="">https://gist.github.com/cfitz/8d5d65c30127ff69ff22</a></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">You can set a RAILS_RELATIVE_URL_ROOT environment variable when you run ./scripts/build_release ( or the build/run dist or whatever ) </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">There's a similar file in the public directory. </div><br class="">I think this would work...<br class=""><br class="">b,chris.<span class="Apple-converted-space"> </span><br class=""><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div id="Signature" class=""><div name="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; margin: 0px;" class=""><div class="BodyFragment"><font size="2" class="">Chris Fitzpatrick | Developer, ArchivesSpace<br class="">Skype: chrisfitzpat  | Phone: 918.236.6048<br class=""><a href="http://archivesspace.org/" class="">http://archivesspace.org/</a><br class=""></font></div></div></div><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 734.015625px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" class="">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Steven Majewski <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Friday, July 24, 2015 5:25 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Archivesspace Users Group<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Archivesspace_Users_Group] Serving ArchivesSpace with prefix and proxy</font><div class=""> </div></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 23, 2015, at 9:11 PM, Steven Majewski <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">There is still the issue of LCNAF plugin paths being broken. I haven't looked at that issue yet.<span class="Apple-converted-space"> </span></span><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><br class="" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></div></blockquote></div><div class=""><br class=""></div>Looks like LCNAF plugin frontend/routes.rb just needs to be wrapped with a scope like the public and frontend routes: <br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);"><b class="">diff --git a/plugins/lcnaf/frontend/routes.rb b/plugins/lcnaf/frontend/routes.rb</b></div><div class="" style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);"><b class="">index 9a41305..7f0acd9 100644</b></div><div class="" style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);"><b class="">--- a/plugins/lcnaf/frontend/routes.rb</b></div><div class="" style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);"><b class="">+++ b/plugins/lcnaf/frontend/routes.rb</b></div><div class="" style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);">@@ -1,7 +1,9 @@</div><div class="" style="margin: 0px; background-color: rgb(255, 206, 182);"> ArchivesSpace::Application.routes.draw do</div><div class="" style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);">+  scope AppConfig[:frontend_prefix] do</div><div style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 18px;" class=""> <br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);">-  match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])</div><div class="" style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);">-  match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])</div><div class="" style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);">-  match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])</div><div class="" style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);">+    match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])</div><div class="" style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);">+    match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])</div><div class="" style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);">+    match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])</div><div style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 18px;" class=""> <br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);">+  end</div><div class="" style="margin: 0px; background-color: rgb(255, 206, 182);"> end</div></div></div></div></div><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Archivesspace_Users_Group mailing list</span><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a></div></blockquote></div><br class=""></body></html>