From 9acbc749308e3876e67c1a48623851d1d4703704 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 3 Jun 2020 14:27:59 +0800 Subject: [PATCH] settings_pro --- client/.env.production | 2 +- server/server/settings_pro.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/client/.env.production b/client/.env.production index 80c8103..63f069a 100644 --- a/client/.env.production +++ b/client/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://121.36.23.77:8035' diff --git a/server/server/settings_pro.py b/server/server/settings_pro.py index 007e854..2e98f3d 100644 --- a/server/server/settings_pro.py +++ b/server/server/settings_pro.py @@ -2,11 +2,7 @@ from .settings import * DEBUG = False DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.postgresql', - 'NAME': 'db', - 'USER': 'postgres', - 'PASSWORD': 'password', - 'HOST': 'localhost', - 'PORT': '5432', + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }