Ticket #60 (closed defect: fixed)

Opened 15 months ago

Last modified 11 months ago

export: old files not removed from docroot

Reported by: erwin Owned by: erwin
Priority: major Milestone: M6
Component: dalicms-admin Version: 1.0
Keywords: Cc:

Description

If a page is removed, its exported file isn't removed from the export dir.

Removing all html files before copying to new ones is probably not an option since it would cause the site to be broken for a couple of seconds.

Change History

Changed 14 months ago by erwin

  • milestone set to M6

Changed 11 months ago by joeri

The removal of the exported files should be done in the following cases:

  • a page is removed
  • a page is being archived
  • a page is being unpublished

Changed 11 months ago by erwin

  • status changed from new to assigned
  • owner changed from somebody to erwin

this can be fixed by rsyncing the exported html files with the docroot. (with --delete option)

to make sure removed/archived pages are removed, an export notification has to be built in. see #138

CAUTION: using the --delete option will cause all manually copied files to be removed (if any) also the /stats directory would be removed, so an exception has to be built in for that

Changed 11 months ago by erwin

  • status changed from assigned to closed
  • resolution set to fixed

fixed in build 38

DEPLOYMENT REQUIREMENTS (for projects that use exports):

  • create a link from /var/projects/PROJECT/pictures to /var/projects/PROJECT/files
  • create an exclude file in the export dir of the project containing the files or directory that should be excluded. by default an exclude file is created containing 'stats'
Note: See TracTickets for help on using tickets.