musicmuster/.envrc
2022-03-02 09:08:27 +00:00

12 lines
384 B
Plaintext

layout poetry
MYSQL_USER="musicmuster"
MYSQL_PASSWORD="musicmuster"
branch=$(git branch --show-current)
if on_git_branch master; then
MYSQL_DATABASE="musicmuster_prod"
elif on_git_branch v2; then
MYSQL_DATABASE="musicmuster_v2"
else MYSQL_DATABASE="musicmuster_dev"
fi
export MYSQL_CONNECT="mysql+mysqldb://${MYSQL_USER}:${MYSQL_PASSWORD}@localhost/${MYSQL_DATABASE}"