author | Denis Laxalde <denis.laxalde@logilab.fr> |
Fri, 15 Apr 2016 08:59:53 +0200 | |
changeset 11271 | fd177546bbea |
parent 10491 | c67bcee93248 |
child 12530 | 9d88e1177c35 |
permissions | -rw-r--r-- |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8 -*- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
2 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
3 |
.. _SetUpWindowsEnv: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
4 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
5 |
Installing a development environement on Windows |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
6 |
================================================ |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
7 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
8 |
Setting up a Windows development environment is not too complicated |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
9 |
but it requires a series of small steps. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
10 |
|
7633
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
11 |
We propose an example of a typical |cubicweb| installation on Windows |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
12 |
from sources. We assume everything goes into ``C:\\`` and for any |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
13 |
package, without version specification, "the latest is |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
14 |
the greatest". |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
15 |
|
7633
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
16 |
Mind that adjusting the installation drive should be straightforward. |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
17 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
18 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
19 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
20 |
Install the required elements |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
21 |
----------------------------- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
22 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
23 |
|cubicweb| requires some base elements that must be installed to run |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
24 |
correctly. So, first of all, you must install them : |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
25 |
|
9916
986797d779ea
[book] update sections about dependencies
Julien Cristau <julien.cristau@logilab.fr>
parents:
7633
diff
changeset
|
26 |
* python >= 2.6 and < 3 |
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
27 |
(`Download Python <http://www.python.org/download/>`_). |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
28 |
You can also consider the Python(x,y) distribution |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
29 |
(`Download Python(x,y) <http://code.google.com/p/pythonxy/wiki/Downloads>`_) |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
30 |
as it makes things easier for Windows user by wrapping in a single installer |
9916
986797d779ea
[book] update sections about dependencies
Julien Cristau <julien.cristau@logilab.fr>
parents:
7633
diff
changeset
|
31 |
python 2.7 plus numerous useful third-party modules and |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
32 |
applications (including Eclipse + pydev, which is an arguably good |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
33 |
IDE for Python under Windows). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
34 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
35 |
* `Twisted <http://twistedmatrix.com/trac/>`_ is an event-driven |
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
36 |
networking engine |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
37 |
(`Download Twisted <http://twistedmatrix.com/trac/>`_) |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
38 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
39 |
* `lxml <http://codespeak.net/lxml/>`_ library |
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
40 |
(version >=2.2.1) allows working with XML and HTML |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
41 |
(`Download lxml <http://pypi.python.org/pypi/lxml/2.2.1>`_) |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
42 |
|
9916
986797d779ea
[book] update sections about dependencies
Julien Cristau <julien.cristau@logilab.fr>
parents:
7633
diff
changeset
|
43 |
* `Postgresql <http://www.postgresql.org/>`_, |
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
44 |
an object-relational database system |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
45 |
(`Download Postgresql <http://www.enterprisedb.com/products/pgdownload.do#windows>`_) |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
46 |
and its python drivers |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
47 |
(`Download psycopg <http://www.stickpeople.com/projects/python/win-psycopg/#Version2>`_) |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
48 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
49 |
* A recent version of `gettext` |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
50 |
(`Download gettext <http://download.logilab.org/pub/gettext/gettext-0.17-win32-setup.exe>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
51 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
52 |
* `rql <http://www.logilab.org/project/rql>`_, |
9916
986797d779ea
[book] update sections about dependencies
Julien Cristau <julien.cristau@logilab.fr>
parents:
7633
diff
changeset
|
53 |
the recent version of the Relationship Query Language parser. |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
54 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
55 |
Install optional elements |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
56 |
------------------------- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
57 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
58 |
We recommend you to install the following elements. They are not |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
59 |
mandatory but they activate very interesting features in |cubicweb|: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
60 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
61 |
* `python-ldap <http://pypi.python.org/pypi/python-ldap>`_ |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
62 |
provides access to LDAP/Active directory directories |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
63 |
(`Download python-ldap <http://www.osuch.org/python-ldap>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
64 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
65 |
* `graphviz <http://www.graphviz.org/>`_ |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
66 |
which allow schema drawings. |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
67 |
(`Download graphviz <http://www.graphviz.org/Download_windows.php>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
68 |
It is quite recommended (albeit not mandatory). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
69 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
70 |
Other elements will activate more features once installed. Take a look |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
71 |
at :ref:`InstallDependencies`. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
72 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
73 |
Useful tools |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
74 |
------------ |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
75 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
76 |
Some additional tools could be useful to develop :ref:`cubes <AvailableCubes>` |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
77 |
with the framework. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
78 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
79 |
* `mercurial <http://mercurial.selenic.com/>`_ and its standard windows GUI |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
80 |
(`TortoiseHG <http://tortoisehg.bitbucket.org/>`_) allow you to get the source |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
81 |
code of |cubicweb| from control version repositories. So you will be able to |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
82 |
get the latest development version and pre-release bugfixes in an easy way |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
83 |
(`Download mercurial <http://bitbucket.org/tortoisehg/stable/wiki/download>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
84 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
85 |
* You can also consider the ssh client `Putty` in order to peruse |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
86 |
mercurial over ssh (`Download <http://www.putty.org/>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
87 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
88 |
* If you are an Eclipse user, mercurial can be integrated using the |
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
89 |
`MercurialEclipse` plugin |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
90 |
(`Home page <http://www.vectrace.com/mercurialeclipse/>`_). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
91 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
92 |
Getting the sources |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
93 |
------------------- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
94 |
|
7633
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
95 |
There are two ways to get the sources of |cubicweb| and its |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
96 |
:ref:`cubes <AvailableCubes>`: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
97 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
98 |
* download the latest release (:ref:`SourceInstallation`) |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
99 |
* get the development version using Mercurial |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
100 |
(:ref:`MercurialInstallation`) |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
101 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
102 |
Environment variables |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
103 |
--------------------- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
104 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
105 |
You will need some convenience environment variables once all is set up. These |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
106 |
variables are settable through the GUI by getting at the `System properties` |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
107 |
window (by righ-clicking on `My Computer` -> `properties`). |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
108 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
109 |
In the `advanced` tab, there is an `Environment variables` button. Click on |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
110 |
it. That opens a small window allowing edition of user-related and system-wide |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
111 |
variables. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
112 |
|
7632
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
113 |
We will consider only user variables. First, the ``PATH`` variable. Assuming |
3c9dfc6e820b
[book] fix some rest/sphinx errors
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7226
diff
changeset
|
114 |
you are logged as user *Jane*, add the following paths, separated by |
7226
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
115 |
semi-colons:: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
116 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
117 |
C:\Documents and Settings\Jane\My Documents\Python\cubicweb\cubicweb\bin |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
118 |
C:\Program Files\Graphviz2.24\bin |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
119 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
120 |
The ``PYTHONPATH`` variable should also contain:: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
121 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
122 |
C:\Documents and Settings\Jane\My Documents\Python\cubicweb\ |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
123 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
124 |
From now, on a fresh `cmd` shell, you should be able to type:: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
125 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
126 |
cubicweb-ctl list |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
127 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
128 |
... and get a meaningful output. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
129 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
130 |
Running an instance as a service |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
131 |
-------------------------------- |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
132 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
133 |
This currently assumes that the instances configurations is located at |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
134 |
``C:\\etc\\cubicweb.d``. For a cube 'my_instance', you will find |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
135 |
``C:\\etc\\cubicweb.d\\my_instance\\win32svc.py``. |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
136 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
137 |
Now, register your instance as a windows service with:: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
138 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
139 |
win32svc install |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
140 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
141 |
Then start the service with:: |
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
142 |
|
e88c57c10b34
[doc] major update of the install documentation
Alain Leufroy <alain.leufroy@logilab.fr>
parents:
diff
changeset
|
143 |
net start cubicweb-my_instance |
7633
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
144 |
|
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
145 |
In case this does not work, you should be able to see error reports in |
ab1385ee7caa
[book, admin] include some fixes done by auc in an email to me
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
7632
diff
changeset
|
146 |
the application log, using the windows event log viewer. |