Giter Site home page Giter Site logo

Comments (4)

dracos avatar dracos commented on August 18, 2024

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.

solbu avatar solbu commented on August 18, 2024

Is there some documentation on how to install this thing without using the install script?

from commonlib.

solbu avatar solbu commented on August 18, 2024

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.

dracos avatar dracos commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.