docbrown/docs/additional_postgres_setup.md
Mac Siri 243c44e23d Update Docs [ci skip] (#656)
* Move frontend doc [ci skip]

* Fix DEV styling [ci skip]

* Update table of contents [ci skip]

* Move stuffs around [ci skip]

* Move stuffs around [ci skip]

* Add gitdocs integration

* Mess with title again [ci-skip]

* Add root readme back in

* Update docs/readme as a new readme

* Messing with title again

* Add where to get help [ci skip]

* Fix dev connect link [ci skip]

* Move how to get help [ci skip]

* Add TODO to empty headers

* Add more TODOs and clean up a link

* Add sloan

* Update prereqs to specify we use macOS

* Add gitdocs build to test on Netlify

* Update README [ci skip]

* Add .gitdocs_build/ to .gitignore [ci skip]

* Create netlify.toml

* Update docs with logo and more docs

* Update gitdocs name

* Add redirects for netlify

* Remove extraneous redirects from netlify

* Add more README TODOs [ci skip]

* Update root directory of gitdocs

* Move ISSUE_TEMPLATE to .github/ [ci skip]

* Testing new base for netlify

* Update README [ci skip]

* Rename index.md to readme.md for GitHub

* Move gitdocs.json to docs folder

* Add GPL LICENSE [ci skip]

* tweak readme

* update license language

* Update FAQ with some Q and A

* Add some traffic control for docs readme

* add license faq and core team members

* Add new line to fix list

* Add AGPL-3

Adding the GNU AFFERO GENERAL PUBLIC LICENSE.

* Update GPL License

* Additional documentation for PostgreSQL setup
2018-08-08 10:36:32 -04:00

1.5 KiB

Setup your application with PostgreSQL -

Follow these links for detailed the installation guide.

  1. Mac OS - setup
  2. Linux / Ubuntu -
    • Ubuntu 14.04 - setup
    • Ubuntu 16.04 and higher - setup
  3. Windows - setup
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.
Note -
  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.