#首页修改
This commit is contained in:
parent
df52de99bd
commit
36b7d5d1e8
|
@ -16,5 +16,6 @@ import traceback
|
||||||
from django.core.wsgi import get_wsgi_application
|
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/current")
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
|
@ -3,9 +3,13 @@ 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.8' # Set to your app's directory
|
env.base_dir = '/var/www/p3.8' # 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'
|
||||||
env.remote_group = 'www-data'
|
env.remote_owner = 'root'
|
||||||
env.restart_cmd = 'sudo service apache2 restart'
|
# env.remote_group = 'www-data'
|
||||||
|
env.remote_group = 'root'
|
||||||
|
# env.restart_cmd = 'sudo service apache2 restart'
|
||||||
|
env.restart_cmd = 'systemctl start httpd.service'
|
||||||
|
|
Loading…
Reference in New Issue