Skip to content

Instantly share code, notes, and snippets.

@yaf
Last active October 15, 2020 20:07
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 yaf/7a96916f609a3e8a69cd6e991b29c4af to your computer and use it in GitHub Desktop.
Save yaf/7a96916f609a3e8a69cd6e991b29c4af to your computer and use it in GitHub Desktop.
configuration user postgresql
# 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