Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ DB_DRIVER=postgres

POSTGRES_USER=admin
POSTGRES_PASSWORD=password
POSTGRES_DB=
POSTGRES_DB=ocotillo
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_PORT=54321

# Connection pool configuration for parallel transfers
# pool_size: number of persistent connections to maintain
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ supports research, field operations, and public data delivery for the Bureau of
#### 1. Clone the repository

```bash
git clone https://github.com/DataIntegrationGroup/NMSampleLocations.git
cd NMSampleLocations
git clone https://github.com/DataIntegrationGroup/OcotilloAPI.git
cd OcotilloAPI
```

#### 2. Set up virtual environment and install depdencies
#### 2. Set up virtual environment and install dependencies


<table>
Expand Down Expand Up @@ -90,6 +90,12 @@ pre-commit install
# Edit `.env` to configure database connection and app settings
cp .env.example .env
```
Notes:
* Create file gcs_credentials.json in the root directory of the project, and obtain its contents from a teammate.
* PostgreSQL port is 54321 (default is 5432). Update your `postgresql.conf` to `port = 54321`.
- On many systems, `postgresql.conf` is in the PostgreSQL data directory (for example: `/etc/postgresql/<version>/main/postgresql.conf` on Debian/Ubuntu, `/var/lib/pgsql/data/postgresql.conf` on many RPM-based distros, or `/usr/local/var/postgres/postgresql.conf` for Homebrew on macOS).
- You can find the exact location from `psql` with: `SHOW config_file;`
- After changing the port, restart PostgreSQL so the new port takes effect.

In development set `MODE=development` to allow lexicon enums to be populated.

Expand Down
Loading