Skip to content

Instantly share code, notes, and snippets.

@yunusemredilber
Created March 17, 2020 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunusemredilber/fdf261d85abe3c30ce20356a38c748e0 to your computer and use it in GitHub Desktop.
Save yunusemredilber/fdf261d85abe3c30ce20356a38c748e0 to your computer and use it in GitHub Desktop.
Potgresql installation for Rails [Ubuntu based distros]
$ sudo apt update
$ sudo apt install postgresql postgresql-contrib libpq-dev
$ sudo -u postgres createuser --interactive
> Enter name of role to add: yunus # Current OS Username
> Shall the new role be a superuser? (y/n) y
## This should work :)
## If any error comes up, the link at the bottom might help
## https://gist.github.com/p1nox/4953113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment