forked from nixsolutions/zfcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (54 loc) · 2.22 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Zend Framework Installer</title>
<link type='text/css' rel='stylesheet' href='index.css' />
</head>
<body>
<div id="content">
<h2>Create Symlink</h2>
<p>
Requried FollowSymlinks option:
<code>ln -s /path/to/zf/public /var/www/htdocs</code>
</p>
<h2>Check directories</h2>
<p>
Run index.sh script
Directories <span>cache</span>, <span>logs</span> and <span>captcha</span> (for forms) should be writable:
<code>
chmod a+w /path/to/zf/data/*<br/>
chmod a+w /path/to/zf/public/captcha/
</code>
</p>
<h2>Set environment</h2>
<p>
Open file <span>public/.htaccess</span> and change <strong>APPLICATION_ENVIRONMENT</strong> define to site environment,<br/>
commonly one of "development", "staging", "testing", "production", but wholly dependent on your organization's and/or site's needs.<br/>
<br/>
Configuration file is requried (see <span>application/config/application.yaml</span>).
</p>
<h2>Run DB Migrations</h2>
<p>
Open directory bin and run migration:
<code>
cd bin/
./zfc.sh up migration
</code>
</p>
<h2>Run Unit Tests</h2>
<p>
Unit tests aviable on CLI
<code>
cd /path/to/zf/tests/<br/>
<em># Run main test suite</em><br/>
phpunit ./<br/>
</code>
For generate reports you should be remove comments from "logging" part of phpunit.xml and
create directory <span>tests/reports</span> with permissions for write
<br/>
Reports is available on follow link: <a href="tests/reports/" title="phpUnit report">tests/reports</a>
</p>
</div>
</body>
</html>