Skip to content

Commit

Permalink
Merge pull request #54 from d-loree/iqs8-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
iqs8 authored Aug 10, 2024
2 parents dc26a27 + 3f381bf commit 2f9cbfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Install bundler by using `gem install bundler`
Inside the projects main directory (where 'Gemfile' is) run: `bundle install`

### Run postgresql server if not already
To set postgresql start on boot: `sudo systemctl enable postgresql`
To set postgresql start on boot: `sudo systemctl enable postgresql`

populate database after initial postgres install if not done already: `sudo postgresql-setup --initdb --unit postgresql`

To start postgresql server manually: `sudo systemctl start postgresql`
To start postgresql server manually: `sudo systemctl start postgresql` or `sudo service postgresql start`

### Database Setup/Creation/Initialization
Setup Database credentials by creating a .env file at the root of the project. Insert these ENV variables:
Expand Down Expand Up @@ -66,4 +66,4 @@ __

**Error**: authentication failed for user "postgres" when running rails db:create (for default postgres user)

**Fix**: set the password: `sudo -i -u postgres` then `psql` then `ALTER USER postgres WITH PASSWORD 'yourpassword';`
**Fix**: set the password: `sudo -i -u postgres` then `psql` then `ALTER USER postgres WITH PASSWORD 'yourpassword';`

0 comments on commit 2f9cbfb

Please sign in to comment.