Last active
December 28, 2015 15:04
-
-
Save sergio1990/9933533 to your computer and use it in GitHub Desktop.
Setup Postgresql for Rails Developers on Mac OS 10.9 Maverick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Download Postgres.app from http://www.postgresql.org/download/macosx/ | |
# 2. Linking psql for easiest using | |
ln -s /Applications/Postgres.app/Contents/Versions/9.3/bin/psql /usr/local/bin/psql | |
# 3. Add to ~/.bash_profile | |
PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin/:$PATH" | |
# 4. Now install pg gem | |
gem install pg | |
# 5. Open psql console and add user by typing two SQLs | |
# sudo -u postgres psql | |
CREATE USER some_user WITH PASSWORD 'password'; | |
ALTER USER some_user WITH SUPERUSER; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/eddiezane/lunchy