You can clone with
HTTPS or Subversion.
Projects that have had their datasources (e.g. shapefile) accessed by mapnik cannot be deleted cleanly as mapnik keeps a file handle open to the file.
Not sure what the best approach to this one will be.
We could work around the specific case of shapefiles by not caching them/memory mapping them at all (this is a compile time configuration which is often turned off for windows but is currently turned on in our builds).
But my larger sense is that we need to expose a global method in mapnik to flush the shapefile memory file_mapping cache. We may also need to consider exposing the other caches as well, like image symbols, fonts, and the postgres pool, so that TileMill can tell mapnik to stop managing resources for projects no longer in use and avoid memory growth that is not directly beneficial to the project(s) actively being used.
We don't have a mapnik issue for this specifically yet, but these are somewhat related:
If we want a bazooka-style workaround project deletion could stop the tile server, nuke the project, and then start the tile server...
@yhahn - re-loading the tileserver does not sound optimal but I would be fascinated to know if that works here. Good to have all the options on the table :).
Release file handle on windows by killing tile server on project dele…
…te. Refs #1121.
It does indeed work.
Just to update the ticket, we may fix this upstream in mapnik by disabling memmapping on windows.
Revert "Release file handle on windows by killing tile server on proj…
…ect delete. Refs #1121."
This reverts commit 34e37de.
new build of mapnik without memory mapping performs the same (z0-6 render of default project) and fixes this issue (mostly - see #1180). closing.
revert 7e2c188, restoring tilemill server restart (refs #1121)- worka…
…round for #1180
no longer hitting with this node v0.8.9 - so disabled in bb785ab
reinstate bazooka yet again so win XP can delete projects (or any oth…
…er case where millstone falls back to hardlink or copy approach) - refs #1121, #1180 and mapbox/millstone#71
also clear the mapnik cache in the tile process - refs #1121,#714,#1210,
fix the request method - this finally fixes shapefile mapped memory c…
…learing - refs #1121,#714,#1210,#1278,#1335