Commits

Anonymous committed 66d845d

first deploy

  • Participants
  • Parent commits 1393f64

Comments (0)

Files changed (2)

 def deploy(commit_msg = ""):
     #commit local files
     local('hg add & hg commit -m"{0}"'.format(commit_msg))
-    local("hg archive --format=tgz {0}.tar.gz".format(env.site))
+    local("hg archive --type=tgz ../{0}.tar.gz".format(env.site))
     #upload files
-    put("{0}.tar.gz".format(env.site),"{1}/{0}.tar.gz".format(env.site, env.root))
+    put("../{0}.tar.gz".format(env.site),"{1}/{0}.tar.gz".format(env.site, env.root))
     with cd(env.root):
-        run("tar zxf {0}.tar.gz".format(env.site))
+        run("tar -zxf {0}.tar.gz".format(env.site))
         run("rm {0}.tar.gz".format(env.site))
     #restart web server
     #clean local dir
-    local("rm {0}.tar.gz".format(env.site))
+    local("rm ../{0}.tar.gz".format(env.site))
 
 

fabfile.pyc

Binary file modified.