sbin/sync/fabfile.py
changeset 68 80c372a0485e
parent 67 2a27231c10d4
child 69 8a0df65c065c
equal deleted inserted replaced
67:2a27231c10d4 68:80c372a0485e
    98 
    98 
    99 def collectstatic(remotepath, remotevirtualenvpath):
    99 def collectstatic(remotepath, remotevirtualenvpath):
   100     print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath))
   100     print("Collect static in %s with %s" % (remotepath, remotevirtualenvpath))
   101     activate_path = os.path.join(remotevirtualenvpath, "bin/activate")
   101     activate_path = os.path.join(remotevirtualenvpath, "bin/activate")
   102     with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath):
   102     with prefix("source \"%s\"" % activate_path), prefix("export PYTHONPATH=\"%s\"" % remotepath), cd(remotepath):
   103         run("python manage.py collectstatics --noinput")
   103         run("python manage.py collectstatic --noinput")
   104         
   104         
   105         
   105         
   106 
   106 
   107 def export_version(version):
   107 def export_version(version):
   108     print("export version %s" % str(version))
   108     print("export version %s" % str(version))