Fix dev setup
This commit is contained in:
parent
18ec91f642
commit
0b4148f95b
3 changed files with 4 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
|||
.vagrant/
|
||||
__pycache__
|
||||
venv
|
||||
|
|
|
@ -90,6 +90,7 @@ DATABASES = {
|
|||
'USER': os.environ['DBUSER'],
|
||||
'PASSWORD': os.environ['DBPASSWD'],
|
||||
'PORT': 5432,
|
||||
'HOST': 'localhost',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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`
|
||||
cat > ~vagrant/.bash_profile <<EOF
|
||||
# On utilise la version de prod de qwann.fr
|
||||
export DJANGO_SETTINGS_MODULE='evenementiel.settings'
|
||||
export DJANGO_SETTINGS_MODULE='evenementiel.settings_dev'
|
||||
|
||||
# Identifiants MySQL
|
||||
export DBUSER="$DBUSER"
|
||||
|
|
Loading…
Reference in a new issue