docbrown/docs/additional-postgres-setup.md
Nick Taylor 01d5ec0fa2 Task/prettier for markdown (#335) [ci skip]
* Added prettier for markdown files on precommit.

* Ran prettier on markdown files.

* Fixed wording as per PR comment.

* Got rid of the double vision on "the". 🙃
2018-08-13 18:04:26 -04:00

1.5 KiB

Setup your application with PostgreSQL

Follow the instructions in the installation guide below that corresponds to your operating system.

  1. Mac OS
  2. Linux / Ubuntu
  3. Windows
You can find all installation packages for different operating systems here.
After installation
  1. If your Rails app is unable to connect to the PostgreSQL, then update your database.yml file with username and password.
development:
    <<: *default
    username: POSTGRESSQL_USERNAME
    password: POSTGRESSQL_PASSWORD
test:
    <<: *default
    username: POSTGRESSQL_USERNAME
    password: POSTGRESSQL_PASSWORD
  1. While running test cases, if you get an error message postgresql connection timeout. Go to your spec/support/database_cleaner.rb file. And rename :truncation with :deletion.
Notes
  1. Don't forget to set up your PostgreSQL with username and password.
  2. Don't commit your database.yml or database_cleaner.rb files. Or PostgreSQL username and password to any repository.
  3. You can use environment variables for storing username and password. You can define them inside the application.yml file.