author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Thu, 08 Apr 2010 17:50:37 +0200 | |
branch | stable |
changeset 5189 | 84d4587a92bc |
parent 5135 | f15286235aef |
child 5256 | 3f95d10fef94 |
permissions | -rw-r--r-- |
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8 -*- |
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff
changeset
|
2 |
|
1224
a9da8a8f0b19
[doc] Change id to english.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
221
diff
changeset
|
3 |
.. _SetUpEnv: |
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff
changeset
|
4 |
|
2175
16d3c37c5d28
[doc] improvements
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2172
diff
changeset
|
5 |
Installation and set-up of a *CubicWeb* environment |
98
f756ead5746a
[doc] Initial translation of first two section in installation chapter.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
93
diff
changeset
|
6 |
=================================================== |
93
9c919a47e140
[doc] total file reorganisation - phase 1 complete
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff
changeset
|
7 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
8 |
Installation of `Cubicweb` and its dependencies |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
9 |
----------------------------------------------- |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
10 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
11 |
|cubicweb| is packaged for Debian and Ubuntu, but can be installed from source |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
12 |
using a tarball or the Mercurial version control system. |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
13 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
14 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
15 |
.. _DebianInstallation: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
16 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
17 |
Debian and Ubuntu packages |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
18 |
``````````````````````````` |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
19 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
20 |
Depending on the distribution you are using, add the appropriate line to your |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
21 |
list of sources (for example by editing ``/etc/apt/sources.list``). |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
22 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
23 |
For Debian Lenny:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
24 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
25 |
deb http://ftp.logilab.org/dists/ lenny/ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
26 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
27 |
For Debian Sid:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
28 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
29 |
deb http://ftp.logilab.org/dists/ sid/ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
30 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
31 |
For Ubuntu Hardy:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
32 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
33 |
deb http://ftp.logilab.org/dists/ hardy/ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
34 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
35 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
36 |
You can now install the required packages with the following command:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
37 |
|
2172
cf8f9180e63e
delete-trailing-whitespace
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1714
diff
changeset
|
38 |
apt-get update |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
39 |
apt-get install cubicweb cubicweb-dev |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
40 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
41 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
42 |
`cubicweb` installs the framework itself, allowing you to create new instances. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
43 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
44 |
`cubicweb-dev` installs the development environment allowing you to develop new |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
45 |
cubes. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
46 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
47 |
There is also a wide variety of cubes listed on the `CubicWeb.org Forge`_ |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
48 |
available as debian packages and tarball. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
49 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
50 |
The repositories are signed with `Logilab's gnupg key`_. To avoid warning on |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
51 |
"apt-get update": |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
52 |
|
2393
6190852af97f
[doc] add list of dependencies in appendix
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2239
diff
changeset
|
53 |
1. become root using sudo |
2239
0f12f1ebf27c
add note about logilab key file / apt-get
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2175
diff
changeset
|
54 |
2. download http://ftp.logilab.org/dists/logilab-dists-key.asc using e.g. wget |
0f12f1ebf27c
add note about logilab key file / apt-get
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2175
diff
changeset
|
55 |
3. run "apt-key add logilab-dists-key.asc" |
0f12f1ebf27c
add note about logilab key file / apt-get
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2175
diff
changeset
|
56 |
4. re-run apt-get update (manually or through the package manager, whichever you prefer) |
0f12f1ebf27c
add note about logilab key file / apt-get
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2175
diff
changeset
|
57 |
|
2393
6190852af97f
[doc] add list of dependencies in appendix
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2239
diff
changeset
|
58 |
.. _`Logilab's gnupg key`: http://ftp.logilab.org/dists/logilab-dists-key.asc |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
59 |
.. _`CubicWeb.org Forge`: http://www.cubicweb.org/project/ |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
60 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
61 |
|
4431
e597e0ca67cd
Updated CW tutorial.
Adrien Chauve <adrien.chauve@logilab.fr>
parents:
4065
diff
changeset
|
62 |
.. _SourceInstallation: |
e597e0ca67cd
Updated CW tutorial.
Adrien Chauve <adrien.chauve@logilab.fr>
parents:
4065
diff
changeset
|
63 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
64 |
Install from source |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
65 |
``````````````````` |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
66 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
67 |
You can download the archive containing the sources from our `ftp site`_ at:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
68 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
69 |
http://ftp.logilab.org/pub/cubicweb/ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
70 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
71 |
.. _`ftp site`: http://ftp.logilab.org/pub/cubicweb/ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
72 |
|
3488
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
73 |
Make sure you have installed the dependencies (see appendixes for the list). |
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
74 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
75 |
|cubicweb| should soon be pip_ installable, stay tuned (expected in 3.8). |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
76 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
77 |
.. _pip: http://pypi.python.org/pypi/pip |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
78 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
79 |
|
3488
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
80 |
Install from version control system |
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
81 |
``````````````````````````````````` |
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
82 |
|
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
83 |
You can keep up to date with on-going development by using Mercurial and its |
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
84 |
forest extension:: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
85 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
86 |
hg fclone http://www.logilab.org/hg/forests/cubicweb |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
87 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
88 |
See :ref:`MercurialPresentation` for more details about Mercurial. |
3488
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
89 |
|
2420
46c83be959b7
a note about branches
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2239
diff
changeset
|
90 |
When cloning a repository, you might be set in a development branch |
46c83be959b7
a note about branches
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2239
diff
changeset
|
91 |
(the 'default' branch). You should check that the branches of the |
46c83be959b7
a note about branches
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2239
diff
changeset
|
92 |
repositories are set to 'stable' (using `hg up stable` for each one) |
46c83be959b7
a note about branches
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2239
diff
changeset
|
93 |
if you do not intend to develop the framework itself. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
94 |
|
3488
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
95 |
Do not forget to update the forest itself (using `cd path/to/forest ; hg up`). |
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
96 |
|
ab9e7bcfc764
[doc] add missing dependencies in annexes. explain more precisely source install.
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
3138
diff
changeset
|
97 |
Make sure you have installed the dependencies (see appendixes for the list). |
2393
6190852af97f
[doc] add list of dependencies in appendix
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2239
diff
changeset
|
98 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
99 |
|
4431
e597e0ca67cd
Updated CW tutorial.
Adrien Chauve <adrien.chauve@logilab.fr>
parents:
4065
diff
changeset
|
100 |
.. _WindowsInstallation: |
e597e0ca67cd
Updated CW tutorial.
Adrien Chauve <adrien.chauve@logilab.fr>
parents:
4065
diff
changeset
|
101 |
|
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
102 |
Windows installation |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
103 |
```````````````````` |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
104 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
105 |
Base elements |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
106 |
~~~~~~~~~~~~~ |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
107 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
108 |
Setting up a windows development environment is not too complicated but requires |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
109 |
a series of small steps. What is proposed there is only an example of what can be |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
110 |
done. We assume everything goes into `C:\\` in this document. Adjusting the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
111 |
installation drive should be straightforward. |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
112 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
113 |
You should start by downloading and installing the Python(x,y) distribution. It |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
114 |
contains python 2.5 plus numerous useful third-party modules and applications:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
115 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
116 |
http://www.pythonxy.com/download_fr.php |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
117 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
118 |
At the time of this writting, one gets version 2.1.15. Among the many things |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
119 |
provided, one finds Eclipse + pydev (an arguably good IDE for python under |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
120 |
windows). |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
121 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
122 |
Then you must grab Twisted. There is a windows installer directly available from |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
123 |
this page:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
124 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
125 |
http://twistedmatrix.com/trac/ |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
126 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
127 |
A windows installer for lxml will be found there:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
128 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
129 |
http://pypi.python.org/pypi/lxml/2.2.1 |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
130 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
131 |
Check out the lxml-2.2.1-win32-py2.5.exe file. More recent bugfix |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
132 |
releases should probably work, too. |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
133 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
134 |
You should find postgresql 8.4 there:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
135 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
136 |
http://www.enterprisedb.com/products/pgdownload.do#windows |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
137 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
138 |
The python drivers for posgtresql are to be found there:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
139 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
140 |
http://www.stickpeople.com/projects/python/win-psycopg/#Version2 |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
141 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
142 |
Please be careful to select the right python (2.5) and postgres (8.4) versions. |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
143 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
144 |
Pyro enables remote access to cubicweb repository instances. Get it there:: |
3138 | 145 |
|
146 |
http://sourceforge.net/projects/pyro/files/ |
|
147 |
||
3132
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
148 |
To access LDAP/Active directory directories, we need the python-ldap |
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
149 |
package. Windows binaries are available from:: |
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
150 |
|
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
151 |
http://www.osuch.org/python-ldap |
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
152 |
|
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
153 |
Check out the latest release. |
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
154 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
155 |
Having graphviz will allow schema drawings, which is quite recommended (albeit |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
156 |
not mandatory). You should get an msi installer there:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
157 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
158 |
http://www.graphviz.org/Download_windows.php |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
159 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
160 |
Simplejson will be provided within the forest, but a win32 compiled version will |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
161 |
run much faster:: |
3132
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
162 |
|
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
163 |
http://www.osuch.org/python-simplejson%3Awin32 |
cb310b97424e
python-ldap, also win32 binary version of simplejson
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3121
diff
changeset
|
164 |
|
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
165 |
Tools |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
166 |
~~~~~ |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
167 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
168 |
Get mercurial + its standard windows GUI (TortoiseHG) there (the latest is the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
169 |
greatest):: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
170 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
171 |
http://bitbucket.org/tortoisehg/stable/wiki/download |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
172 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
173 |
If you need to peruse mercurial over ssh, it can be helpful to get an ssh client |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
174 |
like Putty:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
175 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
176 |
http://www.putty.org/ |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
177 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
178 |
Integration of mercurial and Eclipse is convenient enough that we want |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
179 |
it. Instructions are set there, in the `Download & Install` section:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
180 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
181 |
http://www.vectrace.com/mercurialeclipse/ |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
182 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
183 |
Setting up the sources |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
184 |
~~~~~~~~~~~~~~~~~~~~~~ |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
185 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
186 |
You need to enable the mercurial forest extension. To do this, edit the file:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
187 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
188 |
C:\Program Files\TortoiseHg\Mercurial.ini |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
189 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
190 |
In the [extensions] section, add the following line:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
191 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
192 |
forest=C:\Program Files\TortoiseHg\ext\forest\forest.py |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
193 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
194 |
Now, you need to clone the cubicweb repository. We assume that you use |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
195 |
Eclipse. From the IDE, choose File -> Import. In the box, select `Mercurial/Clone |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
196 |
repository using MercurialEclipse`. |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
197 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
198 |
In the import main panel you just have to: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
199 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
200 |
* fill the URL field with http://www.logilab.org/hg/forests/cubicwin32 |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
201 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
202 |
* check the 'Repository is a forest' box. |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
203 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
204 |
Then, click on 'Finish'. It might take some time to get it all. Note that the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
205 |
`cubicwin32` forest contains additional python packages such as yapps, vobject, |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
206 |
simplejson and twisted-web2 which are not provided with Python(x,y). This is |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
207 |
provided for convenience, as we do not ensure the up-to-dateness of these |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
208 |
packages, especially with respect to security fixes. |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
209 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
210 |
Environment variables |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
211 |
~~~~~~~~~~~~~~~~~~~~~ |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
212 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
213 |
You will need some convenience environment variables once all is set up. These |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
214 |
variables are settable through the GUI by getting at the 'System properties' |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
215 |
window (by righ-clicking on 'My Computer' -> properties). |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
216 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
217 |
In the 'advanced' tab, there is an 'Environment variables' button. Click on |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
218 |
it. That opens a small window allowing edition of user-related and system-wide |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
219 |
variables. |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
220 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
221 |
We will consider only user variables. First, the PATH variable. You should ensure |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
222 |
it contains, separated by semi-colons, and assuming you are logged in as user |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
223 |
Jane:: |
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
224 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
225 |
C:\Documents and Settings\Jane\My Documents\Python\cubicweb\cubicweb\bin |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
226 |
C:\Program Files\Graphviz2.24\bin |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
227 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
228 |
The PYTHONPATH variable should also contain:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
229 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
230 |
C:\Documents and Settings\Jane\My Documents\Python\cubicweb\ |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
231 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
232 |
From now, on a fresh `cmd` shell, you should be able to type:: |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
233 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
234 |
cubicweb-ctl list |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
235 |
|
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
236 |
... and get a meaningful output. |
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
237 |
|
4065
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
238 |
Running an instance as a service |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
239 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
4065
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
240 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
241 |
This currently assumes that the instances configurations is located at |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
242 |
C:\\etc\\cubicweb.d. |
4065
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
243 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
244 |
For a cube 'my_cube', you will then find |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
245 |
C:\\etc\\cubicweb.d\\my_cube\\win32svc.py that has to be used thusly:: |
4065
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
246 |
|
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
247 |
win32svc install |
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
248 |
|
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
249 |
This should just register your instance as a windows service. A simple:: |
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
250 |
|
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
251 |
net start cubicweb-my_cube |
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
252 |
|
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
253 |
should start the service. |
6e8da644d996
explain how to run as a windows service
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3740
diff
changeset
|
254 |
|
3121
dbc02844d412
sections to help building a window dev environment
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
2539
diff
changeset
|
255 |
|
2539
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
256 |
Other dependencies |
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
257 |
`````````````````` |
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
258 |
|
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
259 |
You can also install: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
260 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
261 |
* `pyro` if you wish the repository to be accessible through Pyro |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
262 |
or if the client and the server are not running on the same machine |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
263 |
(in which case the packages will have to be installed on both |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
264 |
machines) |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
265 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
266 |
* `python-ldap` if you plan to use a LDAP source on the server |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
267 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
268 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
269 |
.. _DatabaseInstallation: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
270 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
271 |
Databases configuration |
1464
09afa1f808c4
[doc] Fix ReST pb.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1460
diff
changeset
|
272 |
----------------------- |
09afa1f808c4
[doc] Fix ReST pb.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1460
diff
changeset
|
273 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
274 |
Whatever the backend used, database connection information are stored in the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
275 |
instance's :file:`sources` file. Currently cubicweb has been tested using |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
276 |
Postgresql (recommanded), MySQL, SQLServer and SQLite. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
277 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
278 |
.. _PostgresqlConfiguration: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
279 |
|
2539
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
280 |
PostgreSQL configuration |
0f26a76b0348
[doc] some more rewriting
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2536
diff
changeset
|
281 |
```````````````````````` |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
282 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
283 |
For installation, please refer to the `PostgreSQL project online documentation`_. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
284 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
285 |
.. _`PostgreSQL project online documentation`: http://www.postgresql.org/ |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
286 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
287 |
You need to install the three following packages: `postgresql-8.X`, |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
288 |
`postgresql-client-8.X`, and `postgresql-plpython-8.X`. If you run postgres |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
289 |
version prior to 8.3, you'll also need the `postgresql-contrib-8.X` package for |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
290 |
full-text search extension. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
291 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
292 |
If you run postgres on another host than the |cubicweb| repository, you should |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
293 |
install the `postgresql-client` package on the |cubicweb| host, and others on the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
294 |
database host. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
295 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
296 |
.. Note:: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
297 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
298 |
If you already have an existing cluster and PostgreSQL server running, you do |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
299 |
not need to execute the initilization step of your PostgreSQL database unless |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
300 |
you want a specific cluster for |cubicweb| databases or if your existing |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
301 |
cluster doesn't use the UTF8 encoding (see note below). |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
302 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
303 |
* First, initialize a PostgreSQL cluster with the command ``initdb``. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
304 |
:: |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
305 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
306 |
$ initdb -E UTF8 -D /path/to/pgsql |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
307 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
308 |
Notice the encoding specification. This is necessary since |cubicweb| usually |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
309 |
want UTF8 encoded database. If you use a cluster with the wrong encoding, you'll |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
310 |
get error like:: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
311 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
312 |
new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
313 |
HINT: Use the same encoding as in the template database, or use template0 as template. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
314 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
315 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
316 |
Once initialized, start the database server PostgreSQL with the command:: |
2172
cf8f9180e63e
delete-trailing-whitespace
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1714
diff
changeset
|
317 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
318 |
$ postgres -D /path/to/psql |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
319 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
320 |
If you cannot execute this command due to permission issues, please make sure |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
321 |
that your username has write access on the database. :: |
2172
cf8f9180e63e
delete-trailing-whitespace
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1714
diff
changeset
|
322 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
323 |
$ chown username /path/to/pgsql |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
324 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
325 |
* The database authentication can be either set to `ident sameuser` or `md5`. If |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
326 |
set to `md5`, make sure to use an existing user of your database. If set to |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
327 |
`ident sameuser`, make sure that your client's operating system user name has a |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
328 |
matching user in the database. If not, please do as follow to create a user:: |
2172
cf8f9180e63e
delete-trailing-whitespace
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1714
diff
changeset
|
329 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
330 |
$ su |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
331 |
$ su - postgres |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
332 |
$ createuser -s -P username |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
333 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
334 |
The option `-P` (for password prompt), will encrypt the password with the |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
335 |
method set in the configuration file :file:`pg_hba.conf`. If you do not use this |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
336 |
option `-P`, then the default value will be null and you will need to set it |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
337 |
with:: |
2172
cf8f9180e63e
delete-trailing-whitespace
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1714
diff
changeset
|
338 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
339 |
$ su postgres -c "echo ALTER USER username WITH PASSWORD 'userpasswd' | psql" |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
340 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
341 |
.. Note:: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
342 |
The authentication method can be configured in file:`pg_hba.conf`. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
343 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
344 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
345 |
The above login/password will be requested when you will create an instance with |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
346 |
`cubicweb-ctl create` to initialize the database of your instance. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
347 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
348 |
Notice that the `cubicweb-ctl db-create` does database initialization that |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
349 |
may requires a postgres superuser. That's why a login/password is explicitly asked |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
350 |
at this step, so you can use there a superuser without using this user when running |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
351 |
the instance. Things that require special privileges at this step: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
352 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
353 |
* database creation, require the 'create database' permission |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
354 |
* install the plpython extension language (require superuser) |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
355 |
* install the tsearch extension for postgres version prior to 8.3 (require superuser) |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
356 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
357 |
To avoid using a super user each time you create an install, a nice trick is to |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
358 |
install plpython (and tsearch when needed) on the special `template1` database, |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
359 |
so they will be installed automatically when cubicweb databases are created |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
360 |
without even with needs for special access rights. To do so, run :: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
361 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
362 |
# Installation of plpythonu language by default :: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
363 |
$ createlang -U pgadmin plpythonu template1 |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
364 |
$ psql -U pgadmin template1 |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
365 |
template1=# update pg_language set lanpltrusted=TRUE where lanname='plpythonu'; |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
366 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
367 |
Where `pgadmin` is a postgres superuser. The last command is necessary since by |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
368 |
default plpython is an 'untrusted' language and as such can't be used by non |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
369 |
superuser. This update fix that problem by making it trusted. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
370 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
371 |
To install the tsearch plain-text index extension on postgres prior to 8.3, run:: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
372 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
373 |
cat /usr/share/postgresql/8.X/contrib/tsearch2.sql | psql -U username template1 |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
374 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
375 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
376 |
.. _MySqlConfiguration: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
377 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
378 |
MySql configuration |
1464
09afa1f808c4
[doc] Fix ReST pb.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1460
diff
changeset
|
379 |
``````````````````` |
2536
88595be9087d
[doc] #306434: say a word about optimization
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2476
diff
changeset
|
380 |
Yout must add the following lines in ``/etc/mysql/my.cnf`` file:: |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
381 |
|
4747
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
382 |
transaction-isolation=READ-COMMITTED |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
383 |
default-storage-engine=INNODB |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
384 |
default-character-set=utf8 |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
385 |
max_allowed_packet = 128M |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
386 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
387 |
.. Note:: |
2536
88595be9087d
[doc] #306434: say a word about optimization
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2476
diff
changeset
|
388 |
It is unclear whether mysql supports indexed string of arbitrary lenght or |
88595be9087d
[doc] #306434: say a word about optimization
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2476
diff
changeset
|
389 |
not. |
88595be9087d
[doc] #306434: say a word about optimization
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
2476
diff
changeset
|
390 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
391 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
392 |
.. _SQLServerConfiguration: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
393 |
|
4747
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
394 |
SQLServer configuration |
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
395 |
``````````````````````` |
4747
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
396 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
397 |
As of this writing, sqlserver support is in progress. You should be able to |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
398 |
connect, create a database and go quite far, but some of the generated SQL is |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
399 |
still currently not accepted by the backend. |
4747
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
400 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
401 |
The `source` configuration file may look like this (specific parts only are |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
402 |
shown):: |
4747
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
403 |
|
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
404 |
[system] |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
405 |
db-driver=sqlserver2005 |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
406 |
db-user=someuser |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
407 |
# database password not needed |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
408 |
#db-password=toto123 |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
409 |
#db-create/init may ask for a pwd: just say anything |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
410 |
db-extra-arguments=Trusted_Connection |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
411 |
db-encoding=utf8 |
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
412 |
|
516e971f10ea
[book/admin/setup] notes about configuration of sql server
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
4746
diff
changeset
|
413 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
414 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
415 |
.. _SQLiteConfiguration: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
416 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
417 |
SQLite configuration |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
418 |
```````````````````` |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
419 |
SQLite has the great advantage of requiring almost no configuration. Simply |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
420 |
use 'sqlite' as db-driver, and set path to the dabase as db-name. Don't specify |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
421 |
anything for db-user and db-password, they will be ignore anyway. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
422 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
423 |
.. Note:: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
424 |
SQLite is great for testing and to play with cubicweb but is not suited for |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
425 |
production environments. |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
426 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
427 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
428 |
.. _PyroConfiguration: |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
429 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
430 |
Pyro configuration |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
431 |
------------------ |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
432 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
433 |
If you want to use Pyro to access your instance remotly, or to have multi-source |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
434 |
or distributed configuration, it is required to have a name server Pyro running |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
435 |
on your network. By by default it is detected by a broadcast request, but you can |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
436 |
specify a location in the instance's configuration file. |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
437 |
|
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
438 |
To do so, you need to : |
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
439 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
440 |
* launch the server manually before starting cubicweb as a server with `pyro-nsd |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
441 |
start` |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
442 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
443 |
* under debian, edit the file :file:`/etc/default/pyro-nsd` so that the name |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
444 |
server pyro will be launched automatically when the machine fire up |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
445 |
|
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
446 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
447 |
Cubicweb resources configuration |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
448 |
-------------------------------- |
1460
6520efef1824
[doc] C011 content moved to C010
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
1444
diff
changeset
|
449 |
|
5135
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
450 |
.. autodocstring:: cubicweb.cwconfig |
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
451 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
452 |
|
f15286235aef
[doc] enhanced setup section: fix sections'level, more postgres tips, merge environment doc with cwconfig.py module docstring using custom autodocstring directive
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4747
diff
changeset
|
453 |
.. |cubicweb| replace:: *CubicWeb* |