<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="">The resources that are failing all seem to be hardwired in less stylesheets.</div><div class="">It would seem that the RAILS_RELATIVE_URL_ROOT patch is unnecessary — the paths</div><div class="">that are variable were already getting prefixed properly, and that can’t do anything</div><div class="">about the hardwired paths in these stylesheets. </div><div class=""><br class=""></div><div class="">As a hack, it appears to work to edit the hardwired paths in the less stylesheets. </div><div class="">( At least for frontend app, I haven’t tried the same changes to public yet. ) </div><div class=""><br class=""></div><div class="">Unfortunately, I’m not familiar enough with lessc and how it’s called in Rails</div><div class="">to know if it’s possible to pass the path prefix in as a variable. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Here are the paths that I changed in frontend app. </div><div class="">I expect to find a similar set in the public app stylesheets.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— Steve. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">diff --git a/frontend/app/assets/stylesheets/archivesspace/icons.less b/frontend/app/assets/stylesheets/archivesspace/icons.less</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">index 773070d..49edb32 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">--- a/frontend/app/assets/stylesheets/archivesspace/icons.less</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">+++ b/frontend/app/assets/stylesheets/archivesspace/icons.less</b></div><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -1,10 +1,10 @@</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @font-face {</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> font-family: 'icomoon';</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- src:url('/assets/icomoon/icomoon.eot?-z7cehr');</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- src:url('/assets/icomoon/icomoon.eot?#iefix-z7cehr') format('embedded-opentype'),</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- url('/assets/icomoon/icomoon.woff?-z7cehr') format('woff'),</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- url('/assets/icomoon/icomoon.ttf?-z7cehr') format('truetype'),</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">- url('/assets/icomoon/icomoon.svg?-z7cehr#icomoon') format('svg');</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ src:url('/admin/assets/icomoon/icomoon.eot?-z7cehr');</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ src:url('/admin/assets/icomoon/icomoon.eot?#iefix-z7cehr') format('embedded-opentype'),</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ url('/admin/assets/icomoon/icomoon.woff?-z7cehr') format('woff'),</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ url('/admin/assets/icomoon/icomoon.ttf?-z7cehr') format('truetype'),</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+ url('/admin/assets/icomoon/icomoon.svg?-z7cehr#icomoon') format('svg');</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> }</div><p style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> .icomoon {</div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">diff --git a/frontend/app/assets/stylesheets/themes/default/bootstrap.less b/frontend/app/assets/stylesheets/themes/default/bootstrap.less</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">index 25150dd..bdf1817 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">--- a/frontend/app/assets/stylesheets/themes/default/bootstrap.less</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(255, 206, 182);" class=""><b class="">+++ b/frontend/app/assets/stylesheets/themes/default/bootstrap.less</b></div><div style="margin: 0px; color: rgb(0, 161, 174); background-color: rgb(255, 206, 182);" class="">@@ -1,4 +1,4 @@</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> // override icon paths</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @import "bootstrap/variables";</div><div style="margin: 0px; color: rgb(176, 36, 18); background-color: rgb(255, 206, 182);" class="">-@icon-font-path: "/assets/";</div><div style="margin: 0px; color: rgb(0, 164, 0); background-color: rgb(255, 206, 182);" class="">+@icon-font-path: "/admin/assets/";</div><div style="margin: 0px; background-color: rgb(255, 206, 182);" class=""> @import "bootstrap/bootstrap";</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 24, 2015, at 7:41 PM, Steven Majewski <<a href="mailto:sdm7g@virginia.edu" class="">sdm7g@virginia.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div 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=""><span id="cid:98790676-9A85-4576-A33F-28808DABB1C4@Virginia.EDU"><assets.tiff></span></div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><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=""></div>_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></body></html>