Migrate TileStache to python3
Requires TileStache to be in absolute path Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
9a32c7bffd
commit
e34daa118d
|
@ -1,4 +1,7 @@
|
|||
#!/usr/bin/python2
|
||||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
sys.path.insert(0,'/data/fff/TileStache')
|
||||
|
||||
import os
|
||||
import logging
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2
|
||||
#!/usr/bin/python3
|
||||
|
||||
from distutils.core import setup
|
||||
setup(name='dynmapnik',
|
||||
|
|
|
@ -3,7 +3,7 @@ Description=FF-MAP Tiles
|
|||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/uwsgi_python -s 127.0.0.1:3032 --eval 'import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads
|
||||
ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3032 --eval 'import sys; sys.path.insert(0,"/data/fff/TileStache"); import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads
|
||||
Restart=always
|
||||
KillSignal=SIGQUIT
|
||||
Type=notify
|
||||
|
|
|
@ -21,4 +21,4 @@ systemctl daemon-reload
|
|||
|
||||
python3 setup.py install --force
|
||||
|
||||
(cd ffmap/mapnik; python2 setup.py install)
|
||||
(cd ffmap/mapnik; python3 setup.py install)
|
||||
|
|
Loading…
Reference in New Issue