This commit is contained in:
baoliang 2018-08-28 22:08:24 +08:00
parent 35d9133e59
commit 1d325c62ba
2 changed files with 13 additions and 13 deletions

6
fabfile.py vendored
View File

@ -1,9 +1,9 @@
from fabistrano import deploy
from fabric.api import env
env.hosts = ["westdc@210.77.68.250"] # Replace with your host name or IP
env.hosts = ["jkydtjc@63.1.20.63"] # Replace with your host name or IP
env.base_dir = '/var/www' # Set to your app's directory
env.app_name = 'g214_django' # This will deploy the app to /www/app_name.com/
env.git_clone = 'http://4ngle:welcome1@git.westdc.cn:8000/4ngle/g214-django.git' # Your git url
env.remote_owner = 'westdc'
env.git_clone = 'http://baoliang:welcome1@git.eanbo.cn/xieshen/g214.git' # Your git url
env.remote_owner = 'jkydtjc'
env.remote_group = 'www-data'

View File

@ -24,9 +24,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'yufk*u+7u9l@3og_m_x1_=bexcxs+k41wz^-$g+6wdcp2f@i91'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ['g214.westdc.cn']
ALLOWED_HOSTS = ['221.207.32.75']
# Application definition
@ -91,14 +91,14 @@ WSGI_APPLICATION = 'g214.wsgi.application'
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
DATABASES = {
# 'default': {
# 'ENGINE': 'django.contrib.gis.db.backends.postgis',
# 'NAME': 'g214_test',
# 'USER': 'gis',
# 'PASSWORD': 'gispassword',
# 'HOST': '127.0.0.1',
# 'PORT': '5432',
# }
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
'NAME': 'g214',
'USER': 'postgres',
'PASSWORD': 'g214G214',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
# Password validation