[Archivesspace_Users_Group] Serving ArchivesSpace with prefix and proxy

Chris Fitzpatrick Chris.Fitzpatrick at lyrasis.org
Thu Jul 23 23:40:40 EDT 2015


Hi Steven,


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.


Something like this would work I think:

https://gist.github.com/cfitz/8d5d65c30127ff69ff22


You can set a RAILS_RELATIVE_URL_ROOT environment variable when you run ./scripts/build_release ( or the build/run dist or whatever )


There's a similar file in the public directory.

I think this would work...

b,chris.


Chris Fitzpatrick | Developer, ArchivesSpace
Skype: chrisfitzpat  | Phone: 918.236.6048
http://archivesspace.org/


________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Steven Majewski <sdm7g at virginia.edu>
Sent: Friday, July 24, 2015 5:25 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Serving ArchivesSpace with prefix and proxy


On Jul 23, 2015, at 9:11 PM, Steven Majewski <sdm7g at virginia.edu<mailto:sdm7g at virginia.edu>> wrote:


There is still the issue of LCNAF plugin paths being broken. I haven't looked at that issue yet.



Looks like LCNAF plugin frontend/routes.rb just needs to be wrapped with a scope like the public and frontend routes:


diff --git a/plugins/lcnaf/frontend/routes.rb b/plugins/lcnaf/frontend/routes.rb
index 9a41305..7f0acd9 100644
--- a/plugins/lcnaf/frontend/routes.rb
+++ b/plugins/lcnaf/frontend/routes.rb
@@ -1,7 +1,9 @@
 ArchivesSpace::Application.routes.draw do
+  scope AppConfig[:frontend_prefix] do



-  match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])
-  match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])
-  match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])
+    match('/plugins/lcnaf' => 'lcnaf#index', :via => [:get])
+    match('/plugins/lcnaf/search' => 'lcnaf#search', :via => [:get])
+    match('/plugins/lcnaf/import' => 'lcnaf#import', :via => [:post])



+  end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150724/9a98ec0f/attachment.html>


More information about the Archivesspace_Users_Group mailing list