Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update local.md with postgis install instructions and epoll fix #223

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/src/installation/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,50 @@ pip install -r requirements.txt
### Optional : For Tiles Output
If you opt for tiles output and have ```ENABLE_TILES : True``` in env variable . Make sure you install [Tippecanoe] (https://github.com/felt/tippecanoe)

### Set up your database
- Ensure postgres is installed and running :
``` bash
sudo apt-get install postgresql postgresql-contrib
service postgresql start
service postgresql status
```

- Install postgis
```bash
sudo apt-get install postgis
```

- Create a database
```bash
su postgres
psql
> CREATE DATABASE db_name;
> \q
```

- Setup postgis on that database
```bash
su postgres
psql -U postgres db_name
> CREATE EXTENSION postgis;
> \q
```

### Prevent eventlet epoll error

To prevent
```
AttributeError: module 'eventlet.green.select' has no attribute 'epoll'
```
Set EVENTLET_NO_GREENDNS to "yes"
```bash
export EVENTLET_NO_GREENDNS=yes
```

### Create your configuration file

Follow instructions from [configurations.md](./configurations.md).

### Start the Server

```
Expand Down