X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5afd96d210ed0ad14a5d00f832f6e6a28558e733..f52097c06424da90cc68a51b27884c4b900f26fb:/vagrant/Install-on-Ubuntu-22.sh?ds=sidebyside diff --git a/vagrant/Install-on-Ubuntu-22.sh b/vagrant/Install-on-Ubuntu-22.sh index ae0c0dea..a1375831 100755 --- a/vagrant/Install-on-Ubuntu-22.sh +++ b/vagrant/Install-on-Ubuntu-22.sh @@ -26,10 +26,14 @@ export DEBIAN_FRONTEND=noninteractive #DOCS: nlohmann-json3-dev postgresql-14-postgis-3 \ postgresql-contrib-14 postgresql-14-postgis-3-scripts \ libicu-dev python3-dotenv \ - python3-psycopg2 python3-psutil python3-jinja2 \ + python3-pip python3-psutil python3-jinja2 \ python3-sqlalchemy python3-asyncpg \ python3-icu python3-datrie python3-yaml git +# Some of the Python packages that come with Ubuntu 22.04 are too old, +# so install the latest version from pip: + + pip3 install --user psycopg[binary] # # System Configuration @@ -178,7 +182,7 @@ Environment="PYTHONPATH=/usr/local/lib/nominatim/lib-python/" User=www-data Group=www-data WorkingDirectory=$USERHOME/nominatim-project -ExecStart=$USERHOME/nominatim-venv/bin/gunicorn -b unix:/run/nominatim.sock -w 4 -k uvicorn.workers.UvicornWorker nominatim.server.falcon.server:run_wsgi +ExecStart=$USERHOME/nominatim-venv/bin/gunicorn -b unix:/run/nominatim.sock -w 4 -k uvicorn.workers.UvicornWorker nominatim_api.server.falcon.server:run_wsgi ExecReload=/bin/kill -s HUP \$MAINPID StandardOutput=append:/var/log/gunicorn-nominatim.log StandardError=inherit @@ -248,7 +252,8 @@ else #DOCS: sudo systemctl restart apache2 fi #DOCS: -# The Nominatim API is now available at `http://localhost/nominatim/`. +# The Nominatim API is now available at `http://localhost/nominatim/`. Point your browser +# to the status output `http://localhost/nominatim/status` to test if everything is ok. fi #DOCS: @@ -294,6 +299,7 @@ else #DOCS: sudo systemctl restart nginx fi #DOCS: -# The Nominatim API is now available at `http://localhost/nominatim/`. +# The Nominatim API is now available at `http://localhost/nominatim/`. Point your browser +# to the status output `http://localhost/nominatim/status` to test if everything is ok. fi #DOCS: