From 280c08d7dd041bebfac135c8c7d3c0c9c9cb0057 Mon Sep 17 00:00:00 2001 From: xieshen <1397910458@qq.com> Date: Mon, 7 Dec 2020 00:13:52 +0800 Subject: [PATCH] =?UTF-8?q?#=E9=A6=96=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewMediaMonitoring/settings.py | 4 ++-- fabfile.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NewMediaMonitoring/settings.py b/NewMediaMonitoring/settings.py index 8bebb98..a93d8f5 100644 --- a/NewMediaMonitoring/settings.py +++ b/NewMediaMonitoring/settings.py @@ -153,9 +153,9 @@ STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] -STATIC_ROOT = '/var/www/p3/newmediamonitoring/static/' +STATIC_ROOT = '/var/www/p3.8/newmediamonitoring/static/' MEDIA_URL = '/media/' -MEDIA_ROOT = '/var/www/p3/newmediamonitoring/media/' +MEDIA_ROOT = '/var/www/p3.8/newmediamonitoring/media/' """用户模块扩展部分""" AUTH_PROFILE_MODULE = 'djangoadmin.myadmin.UserProfile' """用户模块扩展完成""" diff --git a/fabfile.py b/fabfile.py index 4081a44..5cffbe7 100644 --- a/fabfile.py +++ b/fabfile.py @@ -12,4 +12,4 @@ env.remote_owner = 'root' # env.remote_group = 'www-data' env.remote_group = 'root' # env.restart_cmd = 'sudo service apache2 restart' -env.restart_cmd = 'systemctl start httpd.service' +env.restart_cmd = 'systemctl restart httpd.service'