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'