Ensures the js test server does not inherit any default db settings

This commit is contained in:
Kumar McMillan 2011-05-03 13:11:32 -05:00
Родитель 537429c53b
Коммит d89eb5871d
1 изменённых файлов: 15 добавлений и 7 удалений

Просмотреть файл

@ -51,15 +51,23 @@ popd
cp -f docs/settings/settings_local.dev.py settings_local.py
cat >> settings_local.py <<SETTINGS
ROOT_URLCONF = '%s.urls' % ROOT_PACKAGE
LOG_LEVEL = logging.ERROR
# Database name has to be set because of sphinx
DATABASES['default']['NAME'] = 'zamboni_$1'
DATABASES['default']['HOST'] = 'localhost'
DATABASES['default']['USER'] = 'hudson'
DATABASES['default']['TEST_NAME'] = 'test_zamboni_$1'
DATABASES['default']['TEST_CHARSET'] = 'utf8'
DATABASES['default']['TEST_COLLATION'] = 'utf8_general_ci'
DATABASES = {
'default': {
'NAME': 'zamboni_$1',
'HOST': 'localhost',
'ENGINE': 'django.db.backends.mysql',
'USER': 'hudson',
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
'TEST_NAME': 'test_zamboni_$1',
'TEST_CHARSET': 'utf8',
'TEST_COLLATION': 'utf8_general_ci',
},
}
CACHE_BACKEND = 'caching.backends.locmem://'
CELERY_ALWAYS_EAGER = True
ADDONS_PATH = '/tmp/warez'