configuration user postgresql
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
# Les paquets Debian nécessaire pour faire du postgresql avec Ruby | |
sudo apt-get -y install postgresql postgresql-contrib libpq-dev | |
# création d'un compte CSF, avec un mot de passe CSF, pour la base de données : | |
sudo -u postgres psql -c "create role csf with createdb login password 'csf';" | |
# pour tester : | |
psql -U csf -h localhost | |
# renvoie "database "csf" does not exist" | |
# Ensuite on peut executer | |
bundle exec rake db:setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment