diff --git a/Gemfile b/Gemfile index 8a1e3512..3a4a12a1 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,9 @@ gem 'middleman', '~>3.2.2' # Live-reloading plugin gem 'middleman-livereload', '~> 3.1.0' +# Deploy plugin +gem 'middleman-deploy', '~> 0.2.3' + # For faster file watcher updates on Windows: gem 'wdm', '~> 0.1.0', :platforms => [:mswin, :mingw] diff --git a/Gemfile.lock b/Gemfile.lock index c0320b9f..9d70073b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,6 +53,10 @@ GEM rack-test (~> 0.6.1) thor (>= 0.15.2, < 2.0) tilt (~> 1.4.1) + middleman-deploy (0.2.3) + middleman-core (>= 3.0.0) + net-sftp + ptools middleman-livereload (3.1.1) em-websocket (>= 0.2.0) middleman-core (>= 3.0.2) @@ -64,6 +68,10 @@ GEM sprockets-helpers (~> 1.0.0) sprockets-sass (~> 1.0.0) multi_json (1.9.2) + net-sftp (2.1.2) + net-ssh (>= 2.6.5) + net-ssh (2.8.0) + ptools (1.2.4) rack (1.5.2) rack-livereload (0.3.15) rack @@ -97,5 +105,6 @@ PLATFORMS DEPENDENCIES bootstrap-sass (~> 3.1.1.0) middleman (~> 3.2.2) + middleman-deploy (~> 0.2.3) middleman-livereload (~> 3.1.0) wdm (~> 0.1.0) diff --git a/config.rb b/config.rb index 429ee6f4..2dab9c6e 100644 --- a/config.rb +++ b/config.rb @@ -69,3 +69,11 @@ # Or use a different image path # set :http_prefix, "/Content/images/" end + +# Deployment +activate :deploy do |deploy| + deploy.method = :git + # Optional Settings + # deploy.remote = "custom-remote" # remote name or git url, default: origin + # deploy.branch = "custom-branch" # default: gh-pages +end