stamen/toner-carto — pull request #23 by mojodna (2014-11-18 00:10:52+00:00)
Title: Refactor build

Replaces `download_natural_earth_data.sh` with `make` targets and fully respects `DATABASE_URL` (from either the environment or a foreman-style `.env` file).

To bootstrap an extract:

```bash
echo postgres:///toner_sf # use make .env to use the default db: toner
make install db/sf # or anything in PLACES
```

This also simplifies the Docker data volume. To build one of those:

```bash
make db/shared
docker build shp/
```

`db/shared` should still be split into `postgres` and `shapefile` targets to facilitate this use-case.

/cc @almccon