* 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". 🙃
1.5 KiB
1.5 KiB
Setup your application with PostgreSQL
Follow the instructions in the installation guide below that corresponds to your operating system.
You can find all installation packages for different operating systems here.
After installation
- If your Rails app is unable to connect to the PostgreSQL, then update your
database.ymlfile withusernameandpassword.
development:
<<: *default
username: POSTGRESSQL_USERNAME
password: POSTGRESSQL_PASSWORD
test:
<<: *default
username: POSTGRESSQL_USERNAME
password: POSTGRESSQL_PASSWORD
- While running test cases, if you get an error message
postgresql connection timeout. Go to yourspec/support/database_cleaner.rbfile. And rename:truncationwith:deletion.
Notes
- Don't forget to set up your PostgreSQL with
usernameandpassword. - Don't commit your
database.ymlordatabase_cleaner.rbfiles. Or PostgreSQLusernameandpasswordto any repository. - You can use environment variables for storing
usernameandpassword. You can define them inside theapplication.ymlfile.