#更换服务器

This commit is contained in:
xieshen 2020-12-07 13:06:20 +08:00
parent eb9e17d80b
commit fe94956941
3 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ STATICFILES_DIRS = [
]
# STATIC_ROOT = '/var/www/p3.8/newmediamonitoring/static/'
MEDIA_URL = '/media/'
MEDIA_ROOT = '/var/www/p3.8/newmediamonitoring/media/'
MEDIA_ROOT = '/var/www/p3/newmediamonitoring/media/'
"""用户模块扩展部分"""
AUTH_PROFILE_MODULE = 'djangoadmin.myadmin.UserProfile'
"""用户模块扩展完成"""

View File

@ -17,5 +17,5 @@ from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NewMediaMonitoring.settings')
# sys.path.append("/var/www/p3/newmediamonitoring/current")
sys.path.append("/var/www/p3.8/newmediamonitoring")
sys.path.append("/var/www/p3/newmediamonitoring")
application = get_wsgi_application()

2
fabfile.py vendored
View File

@ -4,7 +4,7 @@ from fabric.api import env
# env.hosts = ["nut@210.72.82.249"] # Replace with your host name or IP
env.hosts = ["root@182.92.56.18"] # Replace with your host name or IP
# env.base_dir = '/var/www/p3' # Set to your app's directory
env.base_dir = '/var/www/p3.8' # Set to your app's directory
env.base_dir = '/var/www/p3' # Set to your app's directory
env.app_name = 'newmediamonitoring' # This will deploy the app to /www/app_name.com/
env.git_clone = 'http://210.77.77.77/xieshen/newmediamonitoring.git' # Your git url
# env.remote_owner = 'nut'