Fix dev setup

This commit is contained in:
Martin Pépin 2016-09-29 00:13:16 +02:00
parent 18ec91f642
commit 0b4148f95b
3 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View file

@ -1 +1,3 @@
.vagrant/ .vagrant/
__pycache__
venv

View file

@ -90,6 +90,7 @@ DATABASES = {
'USER': os.environ['DBUSER'], 'USER': os.environ['DBUSER'],
'PASSWORD': os.environ['DBPASSWD'], 'PASSWORD': os.environ['DBPASSWD'],
'PORT': 5432, 'PORT': 5432,
'HOST': 'localhost',
} }
} }

View file

@ -20,7 +20,7 @@ sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DBNAME TO $DBUSER;"
# Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh` # Mise en place du .bash_profile pour tout configurer lors du `vagrant ssh`
cat > ~vagrant/.bash_profile <<EOF cat > ~vagrant/.bash_profile <<EOF
# On utilise la version de prod de qwann.fr # On utilise la version de prod de qwann.fr
export DJANGO_SETTINGS_MODULE='evenementiel.settings' export DJANGO_SETTINGS_MODULE='evenementiel.settings_dev'
# Identifiants MySQL # Identifiants MySQL
export DBUSER="$DBUSER" export DBUSER="$DBUSER"