formatting

This commit is contained in:
Henry Jameson 2017-08-15 23:54:15 +03:00
parent c6941676ba
commit 3e2f6895c3

View file

@ -33,13 +33,17 @@ NodeJS is available as `nodejs` package on debian. `apt install nodejs`. Debian
* Replace password in file `config/dev.exs` with password you supplied in previous step (look for line like `password: "postgres"`) * Replace password in file `config/dev.exs` with password you supplied in previous step (look for line like `password: "postgres"`)
* edit `/etc/postgresql/9.6/main/pg_hba.conf` (Assuming you have 9.6 version) and change the line: * edit `/etc/postgresql/9.6/main/pg_hba.conf` (Assuming you have 9.6 version) and change the line:
``` ```
local all postgres peer local all postgres peer
``` ```
to to
``` ```
local all postgres md5 local all postgres md5
``` ```
don't forget to revert it in the later step so you won't have to enter password when accessing psql console. don't forget to revert it in the later step so you won't have to enter password when accessing psql console.
* Create and update your database with `mix ecto.create && mix ecto.migrate`. If it gives errors, try running again, this is a known issue. * Create and update your database with `mix ecto.create && mix ecto.migrate`. If it gives errors, try running again, this is a known issue.
* Undo changes you made in `/etc/postgresql/9.6/main/pg_hba.conf` (replace `md5` with `peer`) * Undo changes you made in `/etc/postgresql/9.6/main/pg_hba.conf` (replace `md5` with `peer`)