Comments (4)
Sorry, the install script has not been updated in some time and yes, is still written for python2 (and looks like it has other issues, e.g. assuming any PostGIS version that isn't 2 must be less than 2!). I'm afraid I'm not sure when we might have the time to look at updating the install script.
It's definitely possible to install MapIt on a python3 only server, and MapIt is python 2/3 agnostic. MapIt is a Django project, so you may be better off picking whichever Django deployment suits you best: https://docs.djangoproject.com/en/3.2/howto/deployment/ - for my last personal Django project on bullseye I used Apache and libapache2-mod-wsgi-py3
which is working well.
Apart from the Django project serving, MapIt needs access to a PostGIS database, and a few Debian packages as listed in conf/packages.generic
. You would need to create a conf/general.yml
file from the example file in the same directory, and conf/post_deploy_actions.bash
should then set up a virtual environment, update the database and collect the static files together.
Hope that's helpful, sorry again that we haven't been able to keep the install script up to date.
from commonlib.
Is there some documentation on how to install this thing without using the install script?
from commonlib.
We have the conf file, as we already have a running server which is serving the norwegian FixMyStreet instance – our problem is that it is still running on Debian 7 and we have been given an ultimatum by our hosting provider (a univercity) to upgrade it or shut it down, and I have been given the task to try and upgrade it – which I am attempting to do on a cloned virtual machine.
My main problem is that there is no documentation that I can find on how to install or upgrade the thing without using the damned, old installer. ;-)
from commonlib.
The only documentation I think we have is http://code.mapit.mysociety.org/install/ - you want the "Installation standalone with the example project" section, not the "Installation as a Django app" section. However, this basically outlines the same things I said above - from what you say, you already have a PostGIS database and a config file, so setting up a web server that can serve a Django project sounds like the only main step you need to do. We include example Apache and nginx configuration in conf, or the Django docs I link to above include various examples as well.
from commonlib.
Related Issues (14)
- Call to taskset looks distinctly linuxy HOT 2
- rblib config unnecessary file checking
- Be cleverer about workers
- rblib: Validate.uses_mixed_capitals should be made unicode-aware HOT 1
- install-site.sh can't source site-specific-install.sh in some cases HOT 3
- Package pinning prevents installing mySociety packages HOT 1
- Don't fallback to [config dir]/packages in install-site.sh HOT 1
- install-site.sh: $UNIX_USER in crontab HOT 1
- the user and host parameters to install-site.sh should be optional with --dev
- read permissions not OK for config file at /home/lmanyonho/fixmystreet/script/../commonlib/perllib/mySociety/Config.pm line 80. HOT 1
- Systemd compatibility in install-site.sh HOT 1
- Error updating APT sources HOT 3
- Install script should warn rather than error for unsupported OS when setting up APT repositories HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commonlib.