[MapProxy] Demo site

Märt Reose Mart.Reose at smit.ee
Wed Dec 9 00:41:07 PST 2015


Hey!

The demo site is not working correctly for me with 1.8.1 on Centos 7 with latest versions of everything.

The problem is that no css,images,javascript is being loaded for the demo page. HTML comes back okey.

I am running the mapproxy behind gunicorn. The config for the app that does not work with these settings:
from logging.config import fileConfig
import os.path
fileConfig(r'/app/mapproxy/etc/log_deploy.ini', {'here': os.path.dirname(__file__)})

from mapproxy.wsgiapp import make_wsgi_app
application = make_wsgi_app(r'/app/mapproxy/etc/mapproxy.yaml',reloader=True)


BUT it Works with this option:
from logging.config import fileConfig
import os.path
fileConfig(r'/app/mapproxy/etc/log_deploy.ini', {'here': os.path.dirname(__file__)})

from mapproxy.wsgiapp import make_wsgi_app
application = make_wsgi_app(r'/app/mapproxy/etc/mapproxy.yaml',reloader=True,debug=True)


Notice that the only difference is the debug=True

Gunicorn is being run as this:
/app/mapproxy/bin/gunicorn -k eventlet -w 4 -b :8080 mapproxy:application

Server-develop Works…



Märt Reose

Senior System Administrator
Rescue and Emergency Sector
E-mail: mart.reose at smit.ee<mailto:mart.reose at smit.ee>
www.smit.ee



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20151209/a6e1fb98/attachment.html>


More information about the MapProxy mailing list