Changeset - 38235b614e3f
[Not reviewed]
default
2 0 2
Marcin Kuzminski - 16 years ago 2010-02-27 17:40:37

starting app script update
moved pure wsgi app to libs,(since it's not needed)
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
manage-hg_app
Show inline comments
 
file renamed from hg_app to manage-hg_app
 
@@ -9,23 +9,27 @@
 
# Description:       starts pylons app
 
### END INIT INFO
 

	
 
project_name=hg_app
 
conf_name=production.ini
 
project_path=/home/marcink/python_workspace/$project_name
 
pid_path=$project_path
 
log_path=$project_path
 
virt_python=/home/marcink/virt_python
 
run_user=root
 
run_group=root
 

	
 
cd $project_path
 
case "$1" in
 
  start)
 
    $virt_python/bin/paster serve --daemon --pid-file=$project_path/$project_name.pid --log-file=$project_path/$project_name.log $project_path/$conf_name start
 
    $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
 
    ;;
 
  stop)
 
    $virt_python/bin/paster serve --daemon --pid-file=$project_path/$project_name.pid --log-file=$project_path/$project_namete.log $project_path/$conf_name stop
 
    $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
 
    ;;
 
  restart)
 
    $virt_python/bin/paster serve --daemon --pid-file=$project_path/$project_name.pid --log-file=$project_path/$project_name.log $project_path/$conf_name restart
 
    $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
 
    ;;
 
  *)
 
    echo "Usage: $0 {start|stop|restart}"
 
    exit 1
 
esac
 
\ No newline at end of file
pylons_app/lib/hgapp.py
Show inline comments
 
file renamed from hgapp.py to pylons_app/lib/hgapp.py
0 comments (0 inline, 0 general)