# HG changeset patch # User ymh # Date 1340390595 -7200 # Node ID 1497bbb6485e0436ac830193503696db0a47bb3b # Parent ff7a0724898c2f4aff9984d45ea439467183c30d small changes, improve default values for platform diff -r ff7a0724898c -r 1497bbb6485e sbin/sync/config.py.tmpl --- a/sbin/sync/config.py.tmpl Fri Jun 22 14:01:19 2012 +0200 +++ b/sbin/sync/config.py.tmpl Fri Jun 22 20:43:15 2012 +0200 @@ -10,8 +10,8 @@ env.remote_web_path = "/iridata/www/ldt/" env.platform_web_module = "ldtplatform" env.remote_ldt_base_path = "/tmp" -env.remote_virtualenv_path = "/iridata/virtualenv/platform" -env.remote_venv_export_path = "/tmp" +env.remote_virtualenv_path = "/iridata/virtualenv/ldt" +env.remote_venv_export_path = "/iridata/users/iri/tmp" env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7" env.web_rsync_filters = [ "+ core", @@ -32,12 +32,12 @@ ] env.web_relaunch_cmd = "supervisorctl restart platform" -env.base_url = "/ldtplatform/" +env.base_url = "/" env.web_url = "http://ldt.iri.centrepompidou.fr" env.stream_url = "rtmp://media.iri.centrepompidou.fr/ddc_player/" env.stream_src_prefix = "" -env.ffmpeg_path = "" +env.ffmpeg_path = "/usr/bin/ffmpeg" env.db_engine = 'django.db.backends.postgresql_psycopg2' env.db_name = 'platform' diff -r ff7a0724898c -r 1497bbb6485e sbin/sync/fabfile.py --- a/sbin/sync/fabfile.py Fri Jun 22 14:01:19 2012 +0200 +++ b/sbin/sync/fabfile.py Fri Jun 22 20:43:15 2012 +0200 @@ -102,7 +102,7 @@ print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath)) activate_path = os.path.join(remotevirtualenvpath, "bin/activate") with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath): - run("python manage.py collectstatic --noinput") + run("python manage.py collectstatic -c --noinput") def create_config(export_path): print("Create config from %s" % (export_path,))