[IMP] doc/howtos/backend: add a small section on how to start the server
This commit is contained in:
parent
b8ac2d1ed7
commit
f620a67672
|
@ -4,8 +4,8 @@
|
||||||
Backend
|
Backend
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Build an Odoo module
|
Start/Stop the Odoo server
|
||||||
====================
|
==========================
|
||||||
|
|
||||||
Odoo uses a client/server architecture in which clients are web browsers
|
Odoo uses a client/server architecture in which clients are web browsers
|
||||||
accessing the odoo server via RPC.
|
accessing the odoo server via RPC.
|
||||||
|
@ -14,6 +14,19 @@ Business logic and extension is generally performed on the server side,
|
||||||
although supporting client features (e.g. new data representation such as
|
although supporting client features (e.g. new data representation such as
|
||||||
interactive maps) can be added to the client.
|
interactive maps) can be added to the client.
|
||||||
|
|
||||||
|
In order to start the server, simply invoke the command :ref:`odoo.py
|
||||||
|
<reference/cmdline>` in the shell from the Odoo main directory:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
./odoo.py
|
||||||
|
|
||||||
|
The server is stopped by hitting ``Ctrl-C`` twice from the terminal, or by
|
||||||
|
killing the corresponding OS process.
|
||||||
|
|
||||||
|
Build an Odoo module
|
||||||
|
====================
|
||||||
|
|
||||||
Both server and client extensions are packaged as *modules* which are
|
Both server and client extensions are packaged as *modules* which are
|
||||||
optionally loaded in a *database*.
|
optionally loaded in a *database*.
|
||||||
|
|
||||||
|
@ -93,11 +106,12 @@ might contain::
|
||||||
import mymodule
|
import mymodule
|
||||||
|
|
||||||
Fortunately, there is a mechanism to help you set up an module. The command
|
Fortunately, there is a mechanism to help you set up an module. The command
|
||||||
``odoo.py`` has a subcommand ``scaffold`` to create an empty module:
|
``odoo.py`` has a subcommand :ref:`scaffold <reference/cmdline/scaffold>` to
|
||||||
|
create an empty module:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
odoo.py scaffold <module name> <where to put it>
|
./odoo.py scaffold <module name> <where to put it>
|
||||||
|
|
||||||
The command creates a subdirectory for your module, and automatically creates a
|
The command creates a subdirectory for your module, and automatically creates a
|
||||||
bunch of standard files for a module. Most of them simply contain commented code
|
bunch of standard files for a module. Most of them simply contain commented code
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.. _reference/cmdline:
|
.. _reference/cmdline:
|
||||||
|
|
||||||
===============================
|
===============================
|
||||||
Command-line interface: oodo.py
|
Command-line interface: odoo.py
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. _reference/cmdline/server:
|
.. _reference/cmdline/server:
|
||||||
|
|
Loading…
Reference in New Issue