sbin/sync/config.py.tmpl
author ymh <ymh.work@gmail.com>
Thu, 30 Aug 2012 01:15:16 +0200
changeset 7 fb450f78bfd1
parent 6 9e29d68d48f1
child 8 fd17983fd0bd
permissions -rwxr-xr-x
correct sync files

from fabric.api import env

env.hosts = ['<user>@<server1>']

env.web_group = '<web_user_group>'
env.folders = ['index', 'log', 'static/media']

env.base_export_path = "<local path used to export hg version>"
env.export_prefix = "theend"
env.remote_web_path = "<path of website root folder on the server>"
env.platform_web_module = "theend"
env.remote_virtualenv_path = "<path of the virtualenv on the server>"
env.remote_venv_export_path = "<path for temporary export path of virtualenv resources>" 
env.remote_baseline_venv = "<path of virtualenv baseline used for virtualenv creation>"
env.web_rsync_filters = [
    "+ core",
    "P .htpasswd",
    "P .htaccess",
    "P theend/.htaccess",
    "P theend/config.py",
    "P theend/modwsgi.wsgi",
    "P robots.txt",
    "P env/***",
    "P log/***",
    "P index/***",
    "P static/media/***",
    "P crossdomain.xml",
]
env.venv_rsync_filters = [
    "+ core",
]
env.web_relaunch_cmd = "supervisorctl restart theend"

env.base_url = "/"
env.web_url = "http://<base_url>"
env.stream_url = "<base_streaming_url>" #optional

env.stream_src_prefix = ""
env.ffmpeg_path = "<path_to_ffmpeg>" #optional

env.db_engine = '<database driver>' #cf django documentation
env.db_name = '<database name>'
env.db_user = '<database user>'
env.db_password = ''
env.db_host = '<database host>'
env.db_port = <database port>

env.log_file = env.remote_web_path + '/log/log.txt'
env.index_path = env.remote_web_path + '/index/'

env.google_analytics_code = ""

env.email_use_tls = True
env.email_host = ""
env.email_host_user = ""
env.email_host_user = ""
env.email_port = ""