<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="">I think the main problem here was that the instructions for running ArchivesSpace under a prefix were a little half-baked - I’ve reworked things so that in the next release the same set of configuration parameters referenced in the instructions for configuring HTTPS can also be used to configure prefixing by way of the Apache Proxy and ProxyPass directives. You can see the documentation here - note that this does not apply to the current release:<div class=""><br class=""></div><div class=""><a href="https://github.com/archivesspace/archivesspace/blob/prefix-problems/README_PREFIX.md" class="">https://github.com/archivesspace/archivesspace/blob/prefix-problems/README_PREFIX.md</a><br class=""><div class=""><br class=""></div><div class="">Brian<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 25, 2015, at 3:35 PM, Steven Majewski <sdm7g@VIRGINIA.EDU> 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="">Went back to hard coding some of the asset paths in .less assets. </div><div class=""><br class=""></div><div class="">It appears the .erb trick works for some files but for other causes the precompile to fail. </div><div class="">I figured I’ld go back to looking at that issue after I find all of the required changes and test them with hard coded values.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Further testing I found that the component paths in the public resource views are also broken.</div><div class=""><br class=""></div><div class="">I tested hardcoding the “/public/“ prefix, and that fixes the problem.</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(212, 192, 172);" class=""><b class="">diff --git a/public/app/views/records/_components.html.erb b/public/app/views/records/_components.html.erb</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(212, 192, 172);" class=""><b class="">index e332e6f..4300347 100644</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(212, 192, 172);" class=""><b class="">--- a/public/app/views/records/_components.html.erb</b></div><div style="margin: 0px; color: rgb(105, 40, 40); background-color: rgb(212, 192, 172);" class=""><b class="">+++ b/public/app/views/records/_components.html.erb</b></div><div style="margin: 0px; color: rgb(1, 147, 160); background-color: rgb(212, 192, 172);" class="">@@ -31,7 +31,7 @@</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> <li class="record-tree-node {if has_children} has-children{else} no-children{/if}" data-uri="${record_uri}"></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> {if has_children}<a href="#" class="record-tree-node-toggle"><span class="record-tree-node-toggle-icon"></span></a>{/if}</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> <span class="icon icon-${node_type}"></span></div><div style="margin: 0px; color: rgb(166, 23, 9); background-color: rgb(212, 192, 172);" class="">- <a href="${record_uri}" class="record-tree-node-title">${title}</a></div><div style="margin: 0px; color: rgb(1, 149, 0); background-color: rgb(212, 192, 172);" class="">+ <a href="/public/${record_uri}" class="record-tree-node-title">${title}</a></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> {if has_children}<ul class="record-sub-tree"></ul>{/if}</div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> </li></div><div style="margin: 0px; background-color: rgb(212, 192, 172);" class=""> --></div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I think I may have to give up on the goal of getting this working for our production deployment, at least for the time being. The more I test it, the more bugs I find. I’m not feeling very confident that this is the last one. </div><div class=""><br class=""></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><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 25, 2015, at 10:41 AM, 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=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 24, 2015, at 9:44 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="">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></div></blockquote><div class=""><br class=""></div><div class="">Reading the docs on the Rails asset pipeline, it seems the suggested way to do something </div><div class="">like that ( their example is with sass, not less, but it should be the same sort of thing )</div><div class="">is to use .erb templating and that the pipeline will successively process extensions: </div><div class=""> icons.less.erb ==> icons.less ==> icons.css </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I tried adding the fronted_prefix in icons.less.erb, but my build failed. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thinking I may have had a syntax error, I tried just renaming “icons.less" to “icons.less.erb",</div><div class="">but the build still fails with a not very informative stack track:</div><div class="">( I’ve also tried renaming to “icons.css.less.erb” with result the same. )</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">frontend:war:</div><div class=""> [echo] Precompiling Rails assets (this can take a little while...)</div><div class=""> [java] rake aborted!</div><div class=""> [java] LoadError: no such file to load -- action_controller/railtie</div><div class=""> [java] org/jruby/RubyKernel.java:1071:in `require'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/frontend/config/application.rb:4:in `(root)'</div><div class=""> [java] org/jruby/RubyKernel.java:1071:in `require'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/jruby-complete-1.7.18.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/frontend/Rakefile:1:in `(root)'</div><div class=""> [java] org/jruby/RubyKernel.java:1087:in `load'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/frontend/Rakefile:5:in `(root)'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/rake_module.rb:1:in `(root)'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/rake_module.rb:28:in `load_rakefile'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:689:in `raw_load_rakefile'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:94:in `load_rakefile'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:93:in `load_rakefile'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:77:in `run'</div><div class=""> [java] /projects/Archivespace/dcs-archivesspace/build/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'</div><div class=""> [java] org/jruby/RubyKernel.java:1087:in `load'</div><div class=""> [java] /usr/local/var/rbenv/versions/jruby-1.7.11/bin/rake:23:in `(root)'</div><div class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">For this deployment, I will probably go back to just editing the hardwired urls in those stylesheets.</div><div class="">Another possible option may be to just serve up the static files directly from apache —</div><div class="">not using the proxy to rails app. The question there is whether I can get the public and frontend </div><div class="">assets to merge together nicely. </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><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><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><div style="margin: 0px; background-color: rgb(255, 206, 182); min-height: 16px;" class=""> <br class="webkit-block-placeholder"></div><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></div></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=""></div>_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class="">Archivesspace_Users_Group@lyralists.lyrasis.org<br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>