[Tilesathome] (Mis?)usage of UploadTargetDirectory in upload.pl
Dirk-Lüder Kreie
osm-list at deelkar.net
Sun Aug 10 19:23:37 BST 2008
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 the
other clients that use UploadToDirectory=1
--
Dirk-Lüder "Deelkar" Kreie
Bremen - 53.0952°N 8.8652°E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080810/89a484e1/attachment.pgp>
More information about the Tilesathome
mailing list