<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>OK: This seems to work for me:</p>
<p><br>
</p>
<p>In the public:devserver target of build/build.xml:</p>
<p> change -Daspace.config.backend_url= to point to the remote backend server.</p>
<p><br>
</p>
<p>Solr URL and public_user_secret are set in default_java_options property near the head of that file.</p>
<p>It looks like those can also be set from a JAVA_OPTS environment variable. </p>
<p>Solr URL should point to the remote solr server, and public_user_secret needs to be set to the same value for both local devserver and in AppConfig[:public_user_secret] on the remote server. Otherwise, you'll get login failures from the local public app
being unable to log into the remote backend. </p>
<p><br>
</p>
<p>With those settings, it appears to be working for me, but I haven't exhaustively tested it. </p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2">
<div class="PlainText"><br>
-- Steve Majewski / UVA Alderman Library </div>
</font></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Majewski, Steven
Dennis (sdm7g) <sdm7g@virginia.edu><br>
<b>Sent:</b> Friday, September 29, 2017 4:09:56 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Running the (development) PUI on a separate server?</font>
<div> </div>
</div>
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Oops: Sorry. I wasn't thinking correctly about running dev mode.</p>
<p><br>
</p>
<p>The URLs except for the ports are hardwired in build.xml. </p>
<p>Looks like it only needs itself and backend URLs. ( No solr ? )</p>
<p><br>
</p>
<p><br>
</p>
<p> <target name="public:devserver" depends="set-classpath, public:clean, public:copy-shared-resources" description="Start an instance of the ArchivesSpacePublic development server"></p>
<p> <java classpath="${jruby_classpath}" classname="org.jruby.Main" fork="true" failonerror="true"</p>
<p> dir="../public"></p>
<p> <jvmarg line="-Daspace.service=public -Daspace.config.backend_url=http://localhost:${aspace.backend.port}/ -Daspace.config.public_url=http://localhost:${aspace.public.port}/ ${default_java_options} ${env.JAVA_OPTS}"/></p>
<p> <env key="GEM_HOME" value="${gem_home}" /></p>
<p> <env key="GEM_PATH" value="" /></p>
<p> <env key="BUNDLE_PATH" value="${gem_home}" /></p>
<p> <env key="ASPACE_INTEGRATION" value="${aspace.integration}" /></p>
<p> <arg line="bin/rails s mizuno -b 0.0.0.0 --port=${aspace.public.port}" /></p>
<p> </java></p>
<p> </target></p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2">
<div class="PlainText"><br>
-- Steve Majewski / UVA Alderman Library </div>
</font></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Majewski, Steven
Dennis (sdm7g) <sdm7g@virginia.edu><br>
<b>Sent:</b> Friday, September 29, 2017 3:57:09 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Running the (development) PUI on a separate server?</font>
<div> </div>
</div>
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>I haven't tried it (yet) but I'm guessing that you just have to set AppConfig[:enable_*] for all but :enable_public to false, and redirect all of the "http://localhost:port" default settings for AppConfig[:*_url] to point to the remote counterparts. You
might also need to set AppConfig[:frontend_proxy_url] </p>
<p><br>
</p>
<p>That should (in theory) get you a configuration with only public server running, talking to backend, solr and frontend on remote server. </p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2">
<div class="PlainText"><br>
-- Steve Majewski / UVA Alderman Library </div>
</font></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Fox, Bobbi
<bobbi_fox@harvard.edu><br>
<b>Sent:</b> Friday, September 29, 2017 2:14:58 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> [Archivesspace_Users_Group] Running the (development) PUI on a separate server?</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m working on customizing the PUI for our institution, working in development mode, and, rather than cloning off our humongous, takes-2+-days to index database (which I need to do, because my “product owner” is a committee made up of picky(yeah,
that’s redundant) Archivists :-) , I was hoping to point to the backend of our V2.1.* QA system already running.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Has anyone tried this? What incredible munging of the build.xml am I likely to need to do?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Bobbi<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>