Changes between Version 4 and Version 5 of NagareAdmin


Ignore:
Timestamp:
06/25/2009 02:55:31 PM (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NagareAdmin

    v4 v5  
    2121 
    2222   with <command> : 
     23    - batch       : Execute Python statements from a file 
    2324    - create-app  : Create an application skeleton 
    2425    - create-db   : Create the database of an application 
     
    3940----------------------- 
    4041 
     42batch 
     43~~~~~ 
     44 
     45The ``batch`` command executes a python file. 
     46 
     47.. code-block:: sh 
     48 
     49   <NAGARE_HOME>/bin/nagare-admin batch <application> <batch.py> [batch options ...] 
     50 
     51Once launched, two variables are available: 
     52 
     53  - `apps` is a dictionary that associates the name of an application to its 
     54    activated application object. 
     55  - `session` is the SQLAlchemy session (don't forget the ``session.commit()`` 
     56    statement at the end of your batch if database entities are manipulated) 
     57 
     58The available options are: 
     59 
     60  -d, --debug       display the generated SQL requests 
     61 
    4162create-app 
    4263~~~~~~~~~~ 
     
    79100~~~~~~~~~~~~ 
    80101 
    81 The ``create-rules`` command generates rewrite rules for the ``lighttpd`` or ``nginx`` 
    82 web servers. These rules associate the URL ``/static/<application>`` to the 
    83 directory path of the static contents of the application. With such rules 
    84 activated, the web server will deliver the static contents instead of Nagare. 
     102The ``create-rules`` command generates rewrite rules for the ``apache``, 
     103``lighttpd`` or ``nginx`` web servers. These rules associate the URL 
     104``/static/<application>`` to the directory path of the static contents of the 
     105application. With such rules activated, the web server will deliver the static 
     106contents instead of Nagare. 
    85107 
    86108.. code-block:: sh 
     
    94116The available options are: 
    95117 
    96   -l                create rules for lighttpd (default) 
    97   -n                create rules for nginx 
     118  -a, --apache      create rules for Apache (default) 
     119  -l, --lighttpd    create rules for Lighttpd 
     120  -n, --nginx       create rules for Nginx 
    98121 
    99122drop-db 
     
    213236 
    214237  - `apps` is a dictionary that associates the name of an application to its 
    215     root component factory. 
    216   - `session` is the SQLAlchemy session 
     238    activated application object. 
     239  - `session` is the SQLAlchemy session (don't forget the ``session.commit()`` 
     240    statement if database entities are manipulated) 
    217241 
    218242The available options are: