sbin/sync/fabfile.py
changeset 67 2a27231c10d4
parent 66 acc222517dc9
child 68 80c372a0485e
equal deleted inserted replaced
66:acc222517dc9 67:2a27231c10d4
    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 collectstatic --noinput")
   103         run("python manage.py collectstatics --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))