Jump to content


Photo

ProcessWire versioning


  • Please log in to reply
4 replies to this topic

#1 marcin

marcin

    Jr. Member

  • Members
  • PipPip
  • 33 posts
  • 1

Posted 27 March 2011 - 10:05 AM

What about typical versioning of PW? (2.1, 2.2,...) I thought about module enabling autoupdate(do you think it would be complcated?), however, it would need some data to be compared(version, release date).

#2 ryan

ryan

    Reiska

  • Administrators
  • 7,786 posts
  • 6542

  • LocationAtlanta, GA

Posted 28 March 2011 - 09:34 AM

The structure is designed to support an auto update, so that this module can be written at some point in the future. The way it would work is that it would grab the latest zip (like from GitHub), then it would rename your /wire/ dir to /.wire.[version]/, and move the /wire/ dir from the zip into the location of the old one. At the same time, it would also replace the /index.php and /.htaccess files (unless you wanted to do that part manually). Lastly, it would run an update.php file from the zip to perform any necessary DB updates (if there were any).

On most servers, we can't assume that the /wire/ dir is writable, so it would likely unzip the latest PW version into a writable dir in /site/assets/, and then FTP into itself to rename and replace the /wire/ dir with the new one. I believe this is the same method that the Wordpress automatic update uses.

#3 Robert Zelník

Robert Zelník

    Full Member

  • Members
  • PipPipPip
  • 69 posts
  • 5

Posted 02 December 2011 - 01:02 AM

What about versioning of a particular templates or fields? Is it possible to set a template to store it's content changes?

Edit: In the meantime I found a mention in another thread that it is coming soon.

http://processwire.c...21.html#msg5921

#4 ryan

ryan

    Reiska

  • Administrators
  • 7,786 posts
  • 6542

  • LocationAtlanta, GA

Posted 02 December 2011 - 04:03 PM

Versioning of templates or fields isn't currently planned, though page versioning will probably be enabled on a template (and possibly field basis). But that would be versioning page data, not template or field settings. Though if you want versioned template files, something like Git is always a good option too.

#5 Robert Zelník

Robert Zelník

    Full Member

  • Members
  • PipPipPip
  • 69 posts
  • 5

Posted 02 December 2011 - 04:29 PM

Oh, sorry, you are right, I meant page data.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users