<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 18, 2016 at 7:33 PM, Aleksey Lim <span dir="ltr"><<a href="mailto:me@alsroot.su" target="_blank">me@alsroot.su</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Nov 18, 2016 at 06:49:54PM -0300, Samuel Cantero wrote:<br>
> +Aleksey +Bernie<br>
><br>
> There's something I don't understand about activities. In<br>
> /srv/www-sugarlabs/activities/<wbr>site/app/config/config.php we define:<br>
><br>
> define('FILES_HOST', '<a href="http://download.sugarlabs.org/activities'" rel="noreferrer" target="_blank">http://download.sugarlabs.<wbr>org/activities'</a>);<br>
><br>
> where FILE_HOST + FILES_URL (downloads/file) is the complete URL where the<br>
> xo files are.<br>
><br>
> <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> is currently hosted in sunjammer.<br>
><br>
> BUT we also define:<br>
><br>
> define('REPO_PATH', '/srv/www-sugarlabs/<wbr>activities/files');<br>
><br>
> This directory contains AGAIN all the .xo files that are already hosted at<br>
> sunjammer for <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> (/srv/upload/activities). So we were<br>
> keeping the activities in two different directories (and now two diff<br>
> servers).<br>
><br>
> I have run a diff -r between these two directories and there are some<br>
> activities that are not present in <a href="http://download.sugarlabs.org" rel="noreferrer" target="_blank">download.sugarlabs.org</a> and vice-versa.<br>
> Just 10 activities and they are very old.<br>
><br>
> I guess that REPO_PATH is the directory where files should be uploaded.<br>
> were you synchronizing these directories -<br>
> /srv/www-sugarlabs/activities/<wbr>files and /srv/upload/activities?<br>
<br>
</span>In AMO code, REPO_PATH should be synced w/ FILES_HOST.<br>
But in ASLO it was not used and, I guess, one of them was linked to another<br>
(I don't have access to sunjammer w/ my old dsa key).<br></blockquote><div><br></div><div>Maybe bind-mounted or with a symlink. I don't remember actually. Now activities is hosted at <a href="http://aslo.sugarlabs.org">aslo.sugarlabs.org</a>. if you provide me your key, I'll give you access.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Aleksey<br>
</font></span></blockquote></div><br></div></div>