newmediamonitoring/fabfile.py

16 lines
709 B
Python
Raw Normal View History

2020-08-20 03:34:37 +00:00
from fabistrano import deploy
from fabric.api import env
2020-12-06 14:37:12 +00:00
# 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
2020-12-06 14:50:57 +00:00
# env.base_dir = '/var/www/p3' # Set to your app's directory
2020-12-07 05:06:20 +00:00
env.base_dir = '/var/www/p3' # Set to your app's directory
2020-08-20 03:34:37 +00:00
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
2020-12-06 14:50:57 +00:00
# env.remote_owner = 'nut'
env.remote_owner = 'root'
# env.remote_group = 'www-data'
env.remote_group = 'root'
# env.restart_cmd = 'sudo service apache2 restart'
2020-12-06 16:13:52 +00:00
env.restart_cmd = 'systemctl restart httpd.service'