Commits

Thejesh GN  committed a3af36d

added other details

  • Participants
  • Parent commits 40a3a73

Comments (0)

Files changed (1)

File maintanance/deploy/fabfile.py

 # It uses fabfile to build and deploy
 # Ref: http://thejeshgn.com/2012/02/02/deployment-php-python-app-using-mercurial-and-fabfile
 # usage:
-#        cd to the build folder
-#        >fab hello    
+#        cd to the folder
+#        $ fab hello    
+#
+#To deploy tagged version to test:
+#        cd to the folder which has fab file
+#        $fab test deploy(REPO_TAG_NAME)
+#
+#To deploy latest version to test:
+#        cd to the folder which has fab file
+#        $fab test deploy(tip)
+#
+#To deploy to prod:
+#        cd to the folder which has fab file
+#        $fab prod deploy(REPO_TAG_NAME)
+#
+#
+
 ################################################################
 from __future__ import with_statement
 from fabric.api import *
 def apache_status():
     sudo('ps aux | egrep "(PID|apache2)"')
 
-def web_deploy(version):
+def deploy(version):
     web_stop()
     update(version)   
-    web_start()     
+    web_start()