Skip to content
OpenBlock Hyperlocal news platform

DocumentationInstallation and setup

OpenBlock documentation

Running PostGIS on a remote server

Move the spatial database to its own server and point OpenBlock at the remote PostGIS instance.

If you're going to run postgresql on a separate server, you will still need to have postgres client libraries and development libraries installed on the machine which will be hosting the openblock software in order to connect and build the python postgres bindings. On Ubuntu, for example, you can run:

$ sudo apt‑get install postgresql‑client postgresql‑server‑dev‑8.4

You or your database administrator should follow the instructions for PostGIS template setup and perform any database commands in the instructions such as createuser, createdb, and in general any steps performed as the postgres user on the database server.

You will need to work out any connection or authentication details with your database administrator. Record the hostname, port, username and password used to connect to the database for use in Openblock's settings.

You will need to modify the DATABASES setting in your application to reflect these settings prior to running any django administrative commands. Settings are located in the python package corresponding to the application, eg: myblock/myblock/settings.py or obdemo/obdemo/settings.py

Reference shelf

More official project, standards, and toolchain sources. These links open in a new tab.

Links point to independent project and standards websites outside openblockproject.org.