Alternate Postgres Install

View Source

If you'd like to manage postgres locally instead of via docker, you can follow these OS-dependant steps to get postgres installed.

macOS install instructions ```bash brew install postgresql@14.4 brew services list brew services stop postgresql@12 # stop other PG install if any brew services start postgresql@14.4 echo 'export PATH="/usr/local/opt/postgresql@14.4/bin:$PATH"' >> ~/.bash_profile . ~/.bash_profile # apply bash profile change ```
Linux (Ubuntu) install instructions ```bash sudo apt update sudo apt-get install postgresql-14.4 postgresql-client ```

And following installation, you can configure and set up the required local databases as follows:

createuser --superuser postgres
mix ecto.reset