sbin/sync/fabfile.py
changeset 694 1497bbb6485e
parent 688 619222c32ade
child 759 6d341beaf632
equal deleted inserted replaced
693:ff7a0724898c 694:1497bbb6485e
   100 
   100 
   101 def collectstatic(remotepath, remotevirtualenvpath):
   101 def collectstatic(remotepath, remotevirtualenvpath):
   102     print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath))
   102     print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath))
   103     activate_path = os.path.join(remotevirtualenvpath, "bin/activate")
   103     activate_path = os.path.join(remotevirtualenvpath, "bin/activate")
   104     with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath):
   104     with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath):
   105         run("python manage.py collectstatic --noinput")
   105         run("python manage.py collectstatic -c --noinput")
   106         
   106         
   107 def create_config(export_path):    
   107 def create_config(export_path):    
   108     print("Create config from %s" % (export_path,))
   108     print("Create config from %s" % (export_path,))
   109     remotepath = env.remote_web_path
   109     remotepath = env.remote_web_path
   110     remote_config_path = os.path.join(remotepath, env.platform_web_module, "config.py")
   110     remote_config_path = os.path.join(remotepath, env.platform_web_module, "config.py")