Skip to content
Snippets Groups Projects
Commit baf90e41 authored by hahn's avatar hahn
Browse files

- config: Hostname nicht mehr aus $SERVER nehmen (wg. CLI)

- Deployment-Cronjob: Check, ob es etwas in der Queue ist
- Sync-Cronjo - sollte nach Anpassung der Config nun gehen
parent 024e0e4f
No related branches found
No related tags found
No related merge requests found
......@@ -35,12 +35,11 @@ $aConfig=array(
// override for local development
// ----------------------------------------------------------------------
if ($_SERVER && array_key_exists("SERVER_NAME", $_SERVER)){
switch ($_SERVER["SERVER_NAME"]) {
case "localhost":
switch (php_uname("n")) {
case "USER":
case "dev.ci.iml.unibe.ch":
$aConfig['workDir']="D:\imldeployment";
$aProjects["scrudu"]["phases"]["preview"]["url"]="http://localhost/deployment/";
break;
case "ci.iml.unibe.ch":
......@@ -57,7 +56,6 @@ if ($_SERVER && array_key_exists("SERVER_NAME", $_SERVER)){
default:
break;
}
}
$aConfig=array_merge($aConfig, array(
'buildDir'=>$aConfig['workDir'].'/build',
......
<?php
echo '<h1>' . $_SERVER["SERVER_NAME"] . '</h1><hr>';
echo '<h1>' . php_uname("n") . '</h1><hr>';
?>
<a href="http://www.iml.unibe.ch/">IML Startseite</a> |
......
<?php
/**
*
* CRONJOB
* deploy all queued packages
*
*/
// http://iml:deployment@ci.iml.unibe.ch/deployment/?prj=ci&action=deploy&par3=preview&confirm=1
......@@ -11,8 +17,15 @@ echo "<h1>===== IMLDEPLOYMENT - deploy all projects =====</h1>\n";
foreach ($oPrj1->getProjects() as $sPrj) {
$oPrj = new project($sPrj);
echo "----- $sPrj:\n";
foreach ($oPrj->getActivePhases() as $sPhase) {
$aTmp=$oPrj->getPhaseInfos($sPhase);
echo "$sPhase: ";
if (array_key_exists("version", $aTmp)){
echo $oPrj->deploy($sPhase);
} else {
echo "SKIP - es ist nichts in der Queue<br>\n";
}
}
echo "<br>\n";
}
......
<?php
/**
*
* FOR CRONJOB
* CRONJOB
* sync archive files
*
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment