An open API service indexing awesome lists of open source software.

https://github.com/avanov/postgres-local-management

Makefile to manage local Postgres instances (to avoid Docker)
https://github.com/avanov/postgres-local-management

Last synced: 5 months ago
JSON representation

Makefile to manage local Postgres instances (to avoid Docker)

Awesome Lists containing this project

README

          

# postgres-local-management
Makefile to manage local Postgres instances (to avoid Docker)

Usage
-----

Define `POSTGRES_LOCAL_MANAGEMENT_DIR`. Usually it's a project-local directory that's not tracked by your version control system.

For instance:
```bash
# .local/ is specified in .gitignore
export POSTGRES_LOCAL_MANAGEMENT_DIR=$(MY_PROJECT_ROOT)/.local
```

You can include this Makefile into your project's Makefile like this:
```Makefile
include $(POSTGRES_LOCAL_MANAGEMENT_REPO)/Makefile
```

Other customizable env vars
---------------------------

| Env var | Default if unset |
|----------------------------------------|------------------|
| `POSTGRES_LOCAL_MANAGEMENT_DB_HOST` | `localhost` |
| `POSTGRES_LOCAL_MANAGEMENT_DB_PORT` | `5432` |
| `POSTGRES_LOCAL_MANAGEMENT_DB_USER` | `$(USER)` |
| `POSTGRES_LOCAL_MANAGEMENT_DB_NAME` | `$(USER)` |
| `POSTGRES_LOCAL_MANAGEMENT_DB_PASS` | `$(USER)` |