#更换服务器
This commit is contained in:
parent
eb9e17d80b
commit
fe94956941
|
@ -155,7 +155,7 @@ STATICFILES_DIRS = [
|
||||||
]
|
]
|
||||||
# STATIC_ROOT = '/var/www/p3.8/newmediamonitoring/static/'
|
# STATIC_ROOT = '/var/www/p3.8/newmediamonitoring/static/'
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
MEDIA_ROOT = '/var/www/p3.8/newmediamonitoring/media/'
|
MEDIA_ROOT = '/var/www/p3/newmediamonitoring/media/'
|
||||||
"""用户模块扩展部分"""
|
"""用户模块扩展部分"""
|
||||||
AUTH_PROFILE_MODULE = 'djangoadmin.myadmin.UserProfile'
|
AUTH_PROFILE_MODULE = 'djangoadmin.myadmin.UserProfile'
|
||||||
"""用户模块扩展完成"""
|
"""用户模块扩展完成"""
|
||||||
|
|
|
@ -17,5 +17,5 @@ from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NewMediaMonitoring.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NewMediaMonitoring.settings')
|
||||||
# sys.path.append("/var/www/p3/newmediamonitoring/current")
|
# 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()
|
application = get_wsgi_application()
|
||||||
|
|
|
@ -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 = ["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.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' # 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.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.git_clone = 'http://210.77.77.77/xieshen/newmediamonitoring.git' # Your git url
|
||||||
# env.remote_owner = 'nut'
|
# env.remote_owner = 'nut'
|
||||||
|
|
Loading…
Reference in New Issue