Files
@ 923f0e6ab010
Branch filter:
Location: kallithea/hg_app - annotation
923f0e6ab010
1.0 KiB
text/plain
change error controller,
added handling 404 to mercurial,
added handling 404 to mercurial,
b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c b6b3533ad63c | #!/bin/sh -e
### BEGIN INIT INFO
# Provides: pylons-manage
# 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
virt_python=/home/marcink/virt_python
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
;;
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
;;
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
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
|