equal
deleted
inserted
replaced
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") |