-
Notifications
You must be signed in to change notification settings - Fork 2
/
deploy.php
123 lines (100 loc) · 2.25 KB
/
deploy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/*******************************************************************************
*
* @author : Dominik Bonsch <[email protected]>
* @date :
* @copyright : Webfrap Developer Network <[email protected]>
* @project : Webfrap Web Frame Application
* @projectUrl : http://webfrap.net
*
* @licence : BSD License see: LICENCE/BSD Licence.txt
*
* @version: @package_version@ Revision: @package_revision@
*
* Changes:
*
*******************************************************************************/
// die Basis Logik einbinden
include 'wbf/core.php';
Console::header( "Start Deployment", true);
Fs::chdir( $deployPath );
if( $syncBeforeDeploy )
{
Console::outln( "Sync before deployment" );
if( !Fs::exists( $repoRoot ) )
Fs::mkdir( $repoRoot );
// eine Temporäre HG RC Datei erstellen, wird benötigt
// um die Passwörter nicht in die URL packen zu müssen oder bei Proxies
Hg::createTmpRc
(
$repoRoot,
$syncRepos,
$displayName,
$repoUser,
$repoPwd
);
Hg::checkout( $syncRepos, $repoRoot, $contactMail );
Fs::chown( $repoRoot, $repoOwner );
}
// Module deployen
Console::outln( "Deploying the modules" );
Deploy::deployModules
(
$deplRepos,
$deployPath,
$sysOwner,
$sysAccess
);
// Icons deployen
Console::outln( "Deploying the icon themes" );
Deploy::deployComponent
(
$deplIcons,
$deployPath,
$sysOwner,
$sysAccess
);
// Themes deployen
Console::outln( "Deploying the themes" );
Deploy::deployComponent
(
$deplThemes,
$deployPath,
$sysOwner,
$sysAccess
);
// Webfrap Deployen
Console::outln( "Deploying WebFrap" );
Deploy::deployFw
(
$deplFw,
$deployPath,
$sysOwner,
$sysAccess
);
// Wgt Deployen
Console::outln( "Deploying WGT" );
Deploy::deployFw
(
$deplWgt,
$deployPath,
$sysOwner,
$sysAccess
);
Fs::chown( $deployPath, $sysOwner );
Fs::chmod( $deployPath, $sysAccess );
// Gateways deployent
Console::outln( "Deploying the gateways" );
Deploy::deployGateways
(
$deplGateways,
$deplRepos,
$deployPath,
$sysOwner,
$sysAccess
);
// Datenbanken erstellen
Console::outln( "Start Database Deployment" );
// Datenbank syncen
Db::syncDatabase( $deplGateways, $deployPath );
Console::footer( 'Finished deployment', true );