Changes between Version 6 and Version 7 of EzProduceScript


Ignore:
Timestamp:
Sep 12, 2007, 5:03:10 AM (7 years ago)
Author:
token
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EzProduceScript

    v6 v7  
    1 = Ez produce project shell script =
     1= Ez produce project Python script =
    22
    33== Description ==
     42007-09-12 I refreshed this script to python-script from unix-shell script.
    45
    56=== What Ez produce project script ? ===
    6 this script execute 'createdb, svnadmin, trac-admin' automaticaly.
     7==== this script execute 'createdb, svnadmin, trac-admin' automaticaly. ====
    78{{{
    8  # ./ezProduceTrac.sh add
     9 # python ./ezProduceTrac.py add
    910}}}
    1011 1. create PostgreSQL DB
     
    1415 1. chmod 777 projectdir, projectdir/log, projectdir/plugins
    1516
    16 and , 'dropdb, remove repos dir, remove project dir automaticaly.
     17==== and , 'dropdb, remove repos dir, remove project dir automaticaly. ====
    1718{{{
    18  # ./ezProduceTrac.sh del
     19 # python ./ezProduceTrac.py del
    1920}}}
    2021 1. check project
     
    2324 1. remove trac dir from $PROJECT_ROOT
    2425
     26==== and , optional list ====
     27{{{
     28 # python ./ezProduceTrac.py [list]
     29}}}
     30 1. show projects
     31 1. show current settings
     32{{{
     33bash@localhost# ./ezProduceTrac.py list
    2534
     35Current Projects list:
     36合計 0
     37
     38Current settings:
     39A = auto detect,  o = valid path,  x = invalid path
     40[SVN] 
     41       admin:   A       /usr/bin/svnadmin
     42       repos:   o       /srv/svn/repos
     43       
     44[TRAC]
     45       templ:   o       /usr/share/trac/templates
     46       admin:   A       /usr/bin/trac-admin
     47       project: o       /home/trac/public_html
     48       
     49[PGSQL]
     50       create:  A       /usr/bin/createdb
     51       drop:    A       /usr/bin/dropdb
     52       
     53bash@localhost#
     54}}}
    2655* for postgresql *
     56
     57== Example ==
     58
     59{{{
     60bash@localhost# python ./ezProduceTrac.py del
     61
     62Current Projects list:
     63total 4
     64drwxr-xr-x 7 root root 4096 2007-09-12 11:32 test
     65
     66please input project name: test
     67[DEBUG] projectname = test
     68/home/trac/public_html/test/README
     69[INFO] removing trac project: test
     70[INFO] drop db test
     71[DEBUG] su - postgres -c "/usr/bin/dropdb test"
     72DROP DATABASE
     73[INFO] complete.
     74
     75[INFO] delete svn repos test
     76[DEBUG] rm -rf /srv/svn/repos/test
     77
     78[INFO] complete.
     79
     80[INFO] delete project dir test
     81[DEBUG] rm -rf /home/trac/public_html/test
     82
     83[INFO] complete.
     84
     85bash@localhost#
     86}}}
     87== Setting yourself ==
     88edit ezProduceTrac.py
     89{{{
     90env = {
     91    'svn':
     92        {
     93        'admin':'do not touch',
     94        'repos':'/srv/svn/repos'
     95        },
     96    'trac':
     97        {
     98        'template':'/usr/share/trac/templates',
     99        'admin':'do not touch',
     100        'project':'/home/trac/public_html'
     101        },
     102    'pgsql':
     103        {
     104        'create':'do not touch',
     105        'drop':'do not touch'
     106        }
     107    }
     108}}}
    27109
    28110== Bugs/Feature Requests ==
     
    38120You can check out EzProduceScript from [http://trac-hacks.org/svn/ezproducescript here] using Subversion, or [source:ezproducescript browse the source] with Trac.
    39121
    40 == Example ==
    41 
    42 {{{
    43 # ./ezProduceTrac.sh add
    44 Project name: myproject
    45 Create DB myproject.
    46 CREATE DATABASE
    47 COMMENT
    48 created.
    49 Create subverion repos myproject.
    50 created.
    51 Create trac project myproject.
    52 ..
    53 ..
    54 ..
    55 Congratulations!
    56 
    57 created.
    58 Setup misc..
    59 Setup finish.
    60 }}}
    61122
    62123== Recent Changes ==