neoromantique / wazimap-ng

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prerequisites

Local Development

Start the dev server for local development. Before you've created your database, the webserver will break because it can't find the database.

docker-compose up

Create the database user and databae. Load up the database

docker exec --user=postgres -it wazimap-ng_db_1  createuser wazimap_ng -W
docker exec --user=postgres wazimap-ng_db_1 createdb -O wazimap_ng  wazimap_ng
```

curl https://wazimap-ng.s3-eu-west-1.amazonaws.com/wazimap-ng-20200113.dump.gz | gunzip -c | docker exec -i wazimap-ng_db_1 pg_restore -U postgres -d wazimap_ng


If this is the first time you're running this, bring the containers down, then up again
```bash
docker-compose down
docker-compose up

Production

To build a new image:

./scripts/docker_build.sh

Note, this currently logs into adieyal on docker-hub. This will be moved to the OpenUp account in future.

```

About

License:Apache License 2.0


Languages

Language:Python 99.7%Language:Shell 0.3%Language:Dockerfile 0.0%