Show More
@@ -12,18 +12,22 b'' | |||||
12 | project_name=hg_app |
|
12 | project_name=hg_app | |
13 | conf_name=production.ini |
|
13 | conf_name=production.ini | |
14 | project_path=/home/marcink/python_workspace/$project_name |
|
14 | project_path=/home/marcink/python_workspace/$project_name | |
|
15 | pid_path=$project_path | |||
|
16 | log_path=$project_path | |||
15 | virt_python=/home/marcink/virt_python |
|
17 | virt_python=/home/marcink/virt_python | |
|
18 | run_user=root | |||
|
19 | run_group=root | |||
16 |
|
20 | |||
17 | cd $project_path |
|
21 | cd $project_path | |
18 | case "$1" in |
|
22 | case "$1" in | |
19 | start) |
|
23 | start) | |
20 |
$virt_python/bin/paster serve --daemon --pid-file=$p |
|
24 | $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_name.log $project_path/$conf_name start | |
21 | ;; |
|
25 | ;; | |
22 | stop) |
|
26 | stop) | |
23 |
$virt_python/bin/paster serve --daemon --pid-file=$p |
|
27 | $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_namete.log $project_path/$conf_name stop | |
24 | ;; |
|
28 | ;; | |
25 | restart) |
|
29 | restart) | |
26 |
$virt_python/bin/paster serve --daemon --pid-file=$p |
|
30 | $virt_python/bin/paster serve --daemon --user= $run_user --group=$run_group --pid-file=$pid_path/$project_name.pid --log-file=$log_path/$project_name.log $project_path/$conf_name restart | |
27 | ;; |
|
31 | ;; | |
28 | *) |
|
32 | *) | |
29 | echo "Usage: $0 {start|stop|restart}" |
|
33 | echo "Usage: $0 {start|stop|restart}" |
1 | NO CONTENT: file renamed from hgapp.py to pylons_app/lib/hgapp.py |
|
NO CONTENT: file renamed from hgapp.py to pylons_app/lib/hgapp.py |
General Comments 0
You need to be logged in to leave comments.
Login now