Files
@ eda5f01de3c4
Branch filter:
Location: kallithea/manage-hg_app - annotation
eda5f01de3c4
1.2 KiB
text/plain
fixes #20 hg middleware breaks ui() instance when repository has hgrc file.
hgrc file now updates application ui instance with only those section that are present.
hgrc file now updates application ui instance with only those section that are present.
38235b614e3f 38235b614e3f 7f88d7088f9c 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 424167fefd6c 38235b614e3f 38235b614e3f 424167fefd6c 38235b614e3f 38235b614e3f 424167fefd6c 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f 38235b614e3f | #!/bin/sh -e
### BEGIN INIT INFO
# Provides: manage-hg_app
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts pylons app
# 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 --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 --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 --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
|