forked from idiap/symfony-bundle-datajukebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL.TXT
114 lines (71 loc) · 3.18 KB
/
INSTALL.TXT
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
Data Jukebox Bundle
===================
BUILD
-----
NOTE: By "build", we mean create the necessary tarballs/package required for
installation (according to the INSTALL section below) or distribution.
1. [MUST] Obtain the source tarball:
$ git clone https://github.com/idiap/symfony-bundle-datajukebox
OR
$ tar -xjf symfony-bundle-datajukebox-source-%{VERSION}.tar.bz2
$ cd symfony-bundle-datajukebox-source-%{VERSION}
2. [MAY] (Re-)build the source tarball:
$ ./debian/rules build-source-tarball
$ ls -al ../symfony-bundle-datajukebox-source-%{VERSION}.tar.bz2
3. [MAY] Build the installation tarball:
$ ./debian/rules build-install-tarball
$ ls -al ../symfony-bundle-datajukebox-%{VERSION}.tar.bz2
4. [MAY] Build the documentation tarball:
$ ./debian/rules build-doc-tarball
$ ls -al ../symfony-bundle-datajukebox-doc-%{VERSION}.tar.bz2
5. [MAY] Build the debian packages:
$ debuild -us -uc -b
$ ls -al ../symfony-bundle-datajukebox_%{VERSION}_all.deb ../symfony-bundle-datajukebox-doc_%{VERSION}_all.deb
6. [MAY] Build the debian source package:
$ debuild -I'.git*' -us -uc -S
$ ls -al ../symfony-bundle-datajukebox_%{VERSION}.dsc ../symfony-bundle-datajukebox_%{VERSION}.tar.gz
OR
2-6. [SHOULD] Do it all with a single command
$ ./debian/rules release
INSTALL
-------
WARNING:
The Data Jukebox Bundle is actively maintained on Linux.
It has not been tested on other platforms.
NOTE:
We assume a previously working PHP/Symfony setup.
1. [MUST] Install the Data Jukebox Bundle:
a. using the installation tarball:
$ INSTALL_DIR='<installation-directory>'
$ cd "${INSTALL_DIR}"
$ tar -xjf symfony-bundle-datajukebox-%{VERSION}.tar.bz2
OR
b. using the debian package:
$ dpkg -i symfony-bundle-datajukebox_%{VERSION}_all.deb
2. [MAY] Install the Data Jukebox Bundle documentation:
a. using the documentation tarball:
$ DOC_DIR='<documentation-directory>'
$ cd "${DOC_DIR}"
$ tar -xjf symfony-bundle-datajukebox-doc-%{VERSION}.tar.bz2
OR
b. using the debian package:
$ dpkg -i symfony-bundle-datajukebox-doc_%{VERSION}_all.deb
OR
c. using the source tarball (and PhpDocumentor):
$ DOC_DIR='<documentation-directory>'
$ pear install -o PhpDocumentor
$ tar -xjf symfony-bundle-datajukebox-source-%{VERSION}.tar.bz2
$ cd symfony-bundle-datajukebox-%{VERSION}
$ ./doc/util/makedoc DataJukeboxBundle "PHP/Symfony Data Jukebox Bundle" "${DOC_DIR}" src doc/phpdoc
USAGE
-----
The Data Jukebox Bundle integrates Symfony the same way as any other
bundle. Thus, make sure to:
- add the corresponding namespace to your application 'autoload.php'
- instantiate the DataJukeboxBundle in your application 'AppKernel.php'
- create/update all assets:
$ ./app/console assets:install --symlink --relative <web-directory>
- dump Assetic resources:
$ ./app/console assetic:dump <web-directory>
Also refer to the Data Jukebox Tutorial (and Bundle) for detailed explanations
on how to use the Data Jukebox Bundle and unleash its full power.