sbin/sync/fabfile.py
changeset 688 619222c32ade
parent 686 ad47b20c737f
child 694 1497bbb6485e
equal deleted inserted replaced
687:cc1c559639ed 688:619222c32ade
   194             folder_path = env.remote_web_path.rstrip("/")+ "/" + folder_path
   194             folder_path = env.remote_web_path.rstrip("/")+ "/" + folder_path
   195             with settings(warn_only=True):
   195             with settings(warn_only=True):
   196                 if not exists(folder_path):
   196                 if not exists(folder_path):
   197                     run("mkdir -p \"%s\"" % folder_path)
   197                     run("mkdir -p \"%s\"" % folder_path)
   198                 run("chown -R -c :%s \"%s\"" % (env.web_group, folder_path))
   198                 run("chown -R -c :%s \"%s\"" % (env.web_group, folder_path))
   199                 run("chown -R -c g+w \"%s\"" % folder_path)
   199                 run("chmod -R -c g+w \"%s\"" % folder_path)
   200 
   200 
   201 def relaunch_server():
   201 def relaunch_server():
   202     print("Relaunch server")
   202     print("Relaunch server")
   203     collectstatic(env.remote_web_path, env.remote_virtualenv_path)
   203     collectstatic(env.remote_web_path, env.remote_virtualenv_path)
   204     check_folder_access()
   204     check_folder_access()