Created
January 31, 2013 09:39
Revisions
-
alexblackie created this gist
Jan 31, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/bin/sh # Simply point your virtualhost to the GIT_WORK_TREE below, with "/build" appended. (ex: /path/to/webroot/example.com/build) # This is how I manage all of my sites. I highly recommend this setup. GIT_WORK_TREE=/path/to/webroot/example.com # Set this to your webroot path (sans build) export GIT_WORK_TREE git checkout -f # Enter Directory cd $GIT_WORK_TREE # Install Gems bundle install # Build Middleman bundle exec middleman build