stable
Clone or download
request #8536 Allow export process to be ran on a different server than front
How to test ? With the sources directly on your local dev machine (instead of being on your dev server). Create a directory from where you will run the commands $> mkdir exports $> cd exports $> mkdir conf logs $> chmod 0700 conf Then prepare the config: - Retrieve config from server (/etc/tuleap/conf/local.inc and /etc/tuleap/conf/database.inc) - Edit local.inc and change: -- $db_config_file = dirname(__FILE__)."/database.inc"; -- $codendi_log = dirname(__FILE__)."/../logs/"; -- $codendi_dir = "/path/to/tuleap/sources"; -- $tmp_dir = "/tmp"; - Your database should also allow connexion from the machine you will be running the script. And finally, run export.sh, example: $> /path/to/tuleap/src/utils/export.sh -p 107 -u admin -t 39 -o data.zip You should get a archive.zip, bring this archive.zip on your development server and run src/utils/collect_xml_data.php archive.zip -> you should get an archive.zip with XML and data. And voilà ! Change-Id: I312bea70e980a864d82649183b4079394875b115
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/XML/Exporter/ArtifactAttachmentExporter.php | +8 | −4 | Go to diff View file |
M | src/common/user/Password/StandardPasswordHandler.class.php | +1 | −1 | Go to diff View file |
A | src/utils/collect_xml_data.php | +101 | −0 | Go to diff View file |
A | src/utils/export.sh | +28 | −0 | Go to diff View file |
M | src/utils/export_project_xml.php | +9 | −4 | Go to diff View file |