1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

Fix README about postgres (solves #34 & #35)

This commit is contained in:
Sylvain 2016-08-23 11:50:48 +02:00
parent 14ab4c7033
commit 94e0b603ad

View File

@ -288,17 +288,13 @@ Otherwise, please follow the official instructions on the project's website.
Before running `rake db:setup`, you have to make sure that the user configured in [config/database.yml](config/database.yml.default) for the `development` environment exists. Before running `rake db:setup`, you have to make sure that the user configured in [config/database.yml](config/database.yml.default) for the `development` environment exists.
To create it, please follow these instructions: To create it, please follow these instructions:
1. Login as the postgres user 1. Run the PostgreSQL administration command line interface, logged as the postgres user
```bash ```bash
sudo -i -u postgres psql -U postgres
``` ```
2. Run the PostgreSQL administration command line interface 2. If you get an error running this command, please check your [pg_hba.conf](https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html) file.
```bash
psql
```
3. Create a new user in PostgreSQL (in this example, the user will be named `sleede`) 3. Create a new user in PostgreSQL (in this example, the user will be named `sleede`)
@ -315,8 +311,8 @@ To create it, please follow these instructions:
5. Then, create the fablab_development and fablab_test databases 5. Then, create the fablab_development and fablab_test databases
```sql ```sql
CREATE DATABASE fablab_development OWNER sleede; CREATE DATABASE fabmanager_development OWNER sleede;
CREATE DATABASE fablab_test OWNER sleede; CREATE DATABASE fabmanager_test OWNER sleede;
``` ```
6. To finish, attribute a password to this user 6. To finish, attribute a password to this user