Thejesh GN avatar Thejesh GN committed a3af36d

added other details

Comments (0)

Files changed (1)

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()     
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.