Navigation » Article » phPoint devtools
phPoint devtools
Since all of the internal templates and apps were stored in the database, we have searched for a solution which allows us to export and of course import packages. Currently this script overwrites existing apps only if their checksum has changed, so we have to integrate a version check in the upcoming release. Still a few things have to be done before we implement it as an update- or packagemanager for phPoint. Until this step, we can use it at least for easy package transfer between different development versions.
Usage examples
Export applications into a file
./devtools.php -e -a --file=apps.dump
Export templates into a file
./devtools.php -e -t --file=templates.dump
Import from a file (-a = applications, -t = templates)
Import -i has a flag -c which performs a check only
./devtools.php -i -a --file=apps.dump
Output
The import function will print out something similar to:
(ppArticleSingle)
INSTALLED V.: Sun, 27 Sep 2009 03:37:38 +0200 1.3.2
PACKAGED V.: Tue, 29 Sep 2009 00:50:22 +0200 1.3.3
UPDATE: 1.3.2 -> 1.3.3
-
(ppArticlesRSS)
INSTALLED V.: Sun, 27 Sep 2009 00:29:53 +0200 1.3.1
PACKAGED V.: Tue, 29 Sep 2009 00:49:18 +0200 1.3.2
UPDATE: 1.3.1 -> 1.3.2
CLEANUP: Removed old application from compile dir
-
(ppSitemapXML)
INSTALLED V.: Tue, 29 Sep 2009 00:47:58 +0200 1.3.1
PACKAGED V.: Tue, 29 Sep 2009 00:50:04 +0200 1.3.2
UPDATE: 1.3.1 -> 1.3.2
-