Skip to content

Instantly share code, notes, and snippets.

@bestwebua
Last active April 28, 2019 18:00
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 bestwebua/23dc706c99002cdcda87eedc1487d778 to your computer and use it in GitHub Desktop.
Save bestwebua/23dc706c99002cdcda87eedc1487d778 to your computer and use it in GitHub Desktop.
Rails + PostgreSQL
sudo apt-get install postgresql libpq-dev cmake
sudo -u postgres createuser --interactive
sudo -u postgres createdb [your_rails_project]_development
sudo -u postgres createdb [your_rails_project]_test
sudo service postgresql restart
ps -ax | grep postg
rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment