[Tilesathome] (Mis?)usage of UploadTargetDirectory in upload.pl
Matthias Julius
lists at julius-net.net
Mon Aug 11 06:07:16 BST 2008
Dirk-Lüder Kreie <osm-list at deelkar.net> writes:
> Dirk-Lüder Kreie schrieb:
>> Ævar Arnfjörð Bjarmason schrieb:
>>> Shouldn't this in upload.pl:
>>>
>>> 65: ## FIXME: this is one of the things that make upload.pl not
>>> multithread safe
>>> 66: my $ZipDir = $Config->get("WorkingDirectory") . "/uploadable";
>>>
>>> Be changed to use UploadTargetDirectory? I was setting up a
>>> configuration pretty much equivalent to the one described here[1] and
>>> had to symlink my upload process's WorkingDirectory/upload to the
>>> global UploadTargetDirectory.
>>>
>>
>> That's not how it should work.
>> each client running on the same machine needs it's own working
>> directory for itself (we're slowly fixing all issues with that, so
>> at some time in the future this will not be necessary anymore)
>>
>> So if you want to use uploadToDirectory, that means you do have
>> multiple clients running, each in their own working directory,
>> pointing their UploadTargetDirectory to one additional client, which
>> has that same directory set as its working directory, and uploading
>> what ever gets pushed there to the server (preferrably by
>> ./tilesGen.pl upload_loop)
>
> To make it clear:
> you shouldn't have to link your working_directory/upload of your
> uploader to the global UploadTargetDirectory, but instead you should
> put uploader_working_directory/upload as UploadTargetDirectory for all
^^^^^^
That should read "uploadable".
> the other clients that use UploadToDirectory=1
Matthias
More information about the Tilesathome
mailing list