From 1d325c62ba2bc524bdf73f750de6e7a9eec7293c Mon Sep 17 00:00:00 2001 From: baoliang Date: Tue, 28 Aug 2018 22:08:24 +0800 Subject: [PATCH] init --- fabfile.py | 6 +++--- g214/settings.py | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/fabfile.py b/fabfile.py index 6b5d98f..f9f3a9f 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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' diff --git a/g214/settings.py b/g214/settings.py index a7b62f0..ac65ec6 100644 --- a/g214/settings.py +++ b/g214/settings.py @@ -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