Update db nastaveni pro -test a -prod
This commit is contained in:
parent
8bf8eb8b23
commit
7ad8a8f88b
3 changed files with 15 additions and 8 deletions
2
Makefile
2
Makefile
|
@ -72,6 +72,7 @@ HEAD=`git log --color=never |head -1|sed 's/.*commit //'`
|
|||
|
||||
push_test:
|
||||
@echo "Checking out commited HEAD (${HEAD}) state at ${TEST_SSH} ..."
|
||||
git tag deploy-test-`date +%Y-%m-%d-%H-%M`-${USER}
|
||||
git push --all
|
||||
ssh ${TEST_USER}@${TEST_SERVER} -n -x "\
|
||||
cd ${TEST_DIR} && \
|
||||
|
@ -89,6 +90,7 @@ push_test:
|
|||
|
||||
push_prod:
|
||||
@echo "Checking out commited HEAD (${HEAD}) state at ${PROD_SSH} ..."
|
||||
git tag deploy-prod-`date +%Y-%m-%d-%H-%M`-${USER}
|
||||
git push --all
|
||||
ssh ${PROD_USER}@${PROD_SERVER} -n -x "\
|
||||
cd ${PROD_DIR} && \
|
||||
|
|
|
@ -22,11 +22,12 @@ ALLOWED_HOSTS = ['mam.mff.cuni.cz', 'www.mam.mff.cuni.cz', 'atrey.karlin.mff.cun
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db-prod-temp.sqlite3'),
|
||||
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
# 'NAME': 'mam-prod',
|
||||
# 'USER': 'mam',
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'mam-prod',
|
||||
'USER': 'mam',
|
||||
'TEST': {
|
||||
'NAME': 'mam-prod-testdb',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -25,9 +25,13 @@ ALLOWED_HOSTS = ['*.mam.mff.cuni.cz']
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'db-test.sqlite3'),
|
||||
}
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'mam-test',
|
||||
'USER': 'mam',
|
||||
'TEST': {
|
||||
'NAME': 'mam-test-testdb',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue