many people serve moderately trafficked sites through paster, myself
included.
the two things you'd need to do are:
1- Make a shell script to handle startup / shutdown
2- install something like nginx on port 80 , and have that handle the
static files or file directories ( js / css /images / etc ); then just
proxy everything else to paster
my ubuntu shell:
cd $$$PATH_NAME$$$/
case "$1" in
start)
paster serve \
--daemon \
--pid-file=$$$PATH_NAME$$$/log/production.pid \
--log-file=$$$PATH_NAME$$$/log/production.log \
$$$PATH_NAME$$$/production.ini \
start
;;
stop)
paster serve \
--daemon \
--pid-file=$$$PATH_NAME$$$/log/production.pid \
--log-file=$$$PATH_NAME$$$/log/production.log \
$$$PATH_NAME$$$/production.ini \
stop
;;
restart)
paster serve \
--daemon \
--pid-file=$$$PATH_NAME$$$/log/production.pid \
--log-file=$$$PATH_NAME$$$/log/production.log \
$$$PATH_NAME$$$/production.ini \
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---