Fixing further typos galore

This commit is contained in:
Griatch 2019-03-19 22:45:40 +01:00
parent ff8844a1bd
commit ad77c07211
2 changed files with 4 additions and 1 deletions

View file

@ -21,7 +21,7 @@ before_install:
- psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE evennia TO evennia;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8;"
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON evennia.* TO 'evennia'@'localost' IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL ON evennia.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"
install:
- pip install psycopg2-binary

View file

@ -39,6 +39,7 @@ SERVERNAME = "testing_mygame"
# Testing database types
if os.environ.get("TESTING_DB") == "postgresql":
print("Loading PostGreSQL database backend.")
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
@ -49,6 +50,7 @@ if os.environ.get("TESTING_DB") == "postgresql":
'PORT': '' # use default
}}
elif os.environ.get("TESTING_DB") == "mysql":
print("Loading MySQL database backend.")
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
@ -60,6 +62,7 @@ elif os.environ.get("TESTING_DB") == "mysql":
}
}
else: # default sqlite3, use default settings
print("Loading SQlite3 database backend (default).")
pass