Skip to content

emre2038/wazimap-ng

 
 

Repository files navigation

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

curl https://wazimap-ng.s3-eu-west-1.amazonaws.com/wazimap_ng-2020203.bak.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.

```

Some notes for database migration - will turn this into proper documentation in the future

SELECT 'ALTER TABLE '|| schemaname || '.' || tablename ||' OWNER TO wazimap_ng;' FROM pg_tables WHERE NOT schemaname IN ('pg_catalog', 'information_schema') ORDER BY schemaname, tablename;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.3%
  • HTML 1.8%
  • JavaScript 1.3%
  • CSS 0.3%
  • Shell 0.2%
  • Dockerfile 0.1%