Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved deploymen configuration

  • Loading branch information...
commit 086d56b1508cc207d100a477cf10b422d4ee7fa7 1 parent 5477b69
Raimonds Simanovskis authored
Showing with 8 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +6 −3 Rakefile
  3. +1 −1  _config.yml
1  .gitignore
View
@@ -2,3 +2,4 @@ _cache/
_drafts/
_site/
tags/
+deploy.rb
9 Rakefile
View
@@ -1,3 +1,6 @@
+deploy_rb = File.expand_path('../deploy.rb', __FILE__)
+require deploy_rb if File.file?(deploy_rb)
+
def jekyll(opts = "")
sh "rm -rf _site"
sh "jekyll " + opts
@@ -13,17 +16,17 @@ task :default do
jekyll("--server --auto")
end
-desc "Deploy to live site"
+desc "Deploy to default site"
task :deploy => :"deploy:live"
namespace :deploy do
- desc "Deploy to Dreamhost"
+ desc "Deploy to live site"
task :live => :build do
rsync "blog.rayapps.com"
end
def rsync(domain)
- sh "rsync -rtz --delete _site/ raymonds72@cayman.dreamhost.com:~/#{domain}/"
+ sh "rsync -rtz --delete _site/ #{DEPLOY_USER}@#{DEPLOY_HOST}:~/#{domain}/"
end
end
2  _config.yml
View
@@ -1,4 +1,4 @@
markdown: rdiscount
pygments: true
permalink: /:year/:month/:day/:title/
-exclude: Rakefile README.textile
+exclude: deploy.rb Rakefile README.textile
Please sign in to comment.
Something went wrong with that request. Please try again.