src/source/quickstart.rst
branchdoc-dc
changeset 109 31b3d00edb8a
parent 104 942151432421
child 117 1293a07cacb4
equal deleted inserted replaced
108:1de74ac0628f 109:31b3d00edb8a
     8 integration, notifications...).
     8 integration, notifications...).
     9 
     9 
    10 See :ref:`install` to get a full description of installation process.
    10 See :ref:`install` to get a full description of installation process.
    11 
    11 
    12 
    12 
    13 0. Before starting
    13 0. Requirement
    14 ++++++++++++++++++
    14 ++++++++++++++
    15 
    15 
    16 Required packages
    16 Packages
    17 -----------------
    17 --------
    18 
    18 
    19 PyAMS relies on system and Python packages which you must have been previously installed in your environment.
    19 PyAMS relies on system and Python packages which you must have been previously installed in your environment.
    20 
    20 
    21 .. note::
    21 .. note::
    22 
    22 
    54 
    54 
    55 .. code-block:: bash
    55 .. code-block:: bash
    56 
    56 
    57     (env)$ pip3.5 install cookiecutter
    57     (env)$ pip3.5 install cookiecutter
    58 
    58 
    59 
    59 1. Creating Database
    60 1. Create ZODB
    60 ++++++++++++++++++++
    61 ++++++++++++++
    61 
       
    62 Create ZODB
       
    63 -----------
    62 
    64 
    63 We are creating a local ZODB using a "ZEO server" cookiecutter template.
    65 We are creating a local ZODB using a "ZEO server" cookiecutter template.
    64 
    66 
    65 .. tip:: To know more about ZODB storages you can see :ref:`zodb`.
    67 .. tip:: To know more about ZODB storages you can see :ref:`zodb`.
    66 
    68 
    96     - cd zeo_pyams
    98     - cd zeo_pyams
    97     - python3.5 bootstrap.py
    99     - python3.5 bootstrap.py
    98     - ./bin/buildout
   100     - ./bin/buildout
    99 
   101 
   100 
   102 
       
   103 Configuration ZODB
       
   104 ------------------
   101 In *zeo_pyams* folder, execute *bootstrap.py*:
   105 In *zeo_pyams* folder, execute *bootstrap.py*:
   102 
   106 
   103 .. code-block:: bash
   107 .. code-block:: bash
   104 
   108 
   105     (env)$ cd zeo_pyams
   109     (env)$ cd zeo_pyams
   126     Generated script '/var/local/env/zeo_pyams/bin/zdaemon'.
   130     Generated script '/var/local/env/zeo_pyams/bin/zdaemon'.
   127     Installing zeo_pyams.
   131     Installing zeo_pyams.
   128     zc.zodbrecipes: Generated shell script '/var/local/env/zeo_pyams/etc/init.d/zeo-zeo_pyams'.
   132     zc.zodbrecipes: Generated shell script '/var/local/env/zeo_pyams/etc/init.d/zeo-zeo_pyams'.
   129 
   133 
   130 
   134 
       
   135 Run ZODB server
       
   136 ---------------
       
   137 
       
   138 
   131 Start the ZEO server:
   139 Start the ZEO server:
   132 
   140 
   133 .. code-block:: bash
   141 .. code-block:: bash
   134 
   142 
   135     (env)$ ./etc/init.d/zeo-zeo_pyams start
   143     (env)$ ./etc/init.d/zeo-zeo_pyams start
   137     Password:
   145     Password:
   138     . . .
   146     . . .
   139     daemon process started, pid=26230
   147     daemon process started, pid=26230
   140 
   148 
   141 
   149 
   142 2. Create application instance
   150 2. Creating application instance
   143 ++++++++++++++++++++++++++++++
   151 ++++++++++++++++++++++++++++++++
   144 
   152 
   145 Application instance will be created in */var/local/env/pyams* via another coockiecutter template:
   153 Application instance will be created in */var/local/env/pyams* via another coockiecutter template:
   146 
   154 
   147 .. code-block:: bash
   155 .. code-block:: bash
   148 
   156