Remove Paste#http, Paste#urlmap and Paste#static dependencies.

Changes:

* Paste#http -> Gunicorn
* Paste#urlmap and Paste#static -> werkzeug.wsgi.SharedDataMiddleware
This commit is contained in:
Berker Peksag
2014-06-29 04:23:50 +03:00
parent f9d93c0e9a
commit 19baab1b03
3 changed files with 20 additions and 59 deletions

View File

@@ -20,7 +20,7 @@ selfname=$(basename "$0")
local_bin="./bin"
case "$selfname" in
lazyserver.sh)
starter_cmd=paster
starter_cmd=gunicorn
ini_prefix=paste
;;
lazycelery.sh)
@@ -36,9 +36,8 @@ esac
if [ "$1" = "-h" ]; then
echo "$0 [-h] [-c filename.ini] [ARGS_to_${starter_cmd} ...]"
echo ""
echo " For example:"
echo " $0 -c fcgi.ini port_number=23371"
echo " or: $0 --server-name=fcgi --log-file=paste.log"
echo " For Gunicorn settings, see at:"
echo " http://docs.gunicorn.org/en/19.0/settings.html"
echo ""
echo " The configfile defaults to ${ini_prefix}_local.ini,"
echo " if that is readable, otherwise ${ini_prefix}.ini."
@@ -71,7 +70,7 @@ set -x
export CELERY_ALWAYS_EAGER=true
case "$selfname" in
lazyserver.sh)
$starter serve "$ini_file" "$@" --reload
$starter --paste "$ini_file" "$@"
;;
lazycelery.sh)
MEDIAGOBLIN_CONFIG="${ini_file}" \