Created
February 15, 2010 03:05
-
-
Save tannerburson/304394 to your computer and use it in GitHub Desktop.
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 characters
| #!/usr/bin/ruby -rubygems | |
| $:.unshift(File.dirname(__FILE__)) | |
| require 'deploy-script' | |
| Deploy::app :name do | |
| @app_path = '/path/to/blog' # cd to this directory before anything else | |
| @repo_url = 'git://github.com/tannerburson/blog.tannerburson.com.git' | |
| end | |
| deploying :name do | |
| update ['rm -rf backup', | |
| 'cp -R release backup', #backup the last release | |
| 'rm -rf release', | |
| "git clone #{@repo_url} release"] # pull down the latest | |
| start "cd #{@app_path}/release && jekyll" | |
| stop | |
| # deploy automatically calls update, start, stop if they've been specified | |
| deploy | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment