small changes, improve default values for platform
authorymh <ymh.work@gmail.com>
Fri, 22 Jun 2012 20:43:15 +0200
changeset 694 1497bbb6485e
parent 693 ff7a0724898c
child 695 e45166859f96
small changes, improve default values for platform
sbin/sync/config.py.tmpl
sbin/sync/fabfile.py
--- 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'
--- 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,))