Skip to content

Commit

Permalink
Using middleman-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdavey committed Nov 23, 2014
1 parent cd09fbf commit 4492193
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ gem "middleman", "~>3.2.1"
gem "middleman-livereload", "~> 3.1.0"

# For publishing on GitHub
gem "middleman-gh-pages"
gem "middleman-deploy"

gem "bootstrap-sass"
13 changes: 9 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ GEM
rack-test (~> 0.6.1)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1)
middleman-gh-pages (0.0.2)
rake (> 0.9.3)
middleman-deploy (1.0.0)
middleman-core (>= 3.2)
net-sftp
ptools
middleman-livereload (3.1.0)
em-websocket (>= 0.2.0)
middleman-core (>= 3.0.2)
Expand All @@ -65,12 +67,15 @@ GEM
sprockets-helpers (~> 1.0.0)
sprockets-sass (~> 1.0.0)
multi_json (1.8.2)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
ptools (1.2.6)
rack (1.5.2)
rack-livereload (0.3.15)
rack
rack-test (0.6.2)
rack (>= 1.0)
rake (10.1.1)
rb-fsevent (0.9.3)
rb-inotify (0.9.3)
ffi (>= 0.5.0)
Expand Down Expand Up @@ -99,5 +104,5 @@ PLATFORMS
DEPENDENCIES
bootstrap-sass
middleman (~> 3.2.1)
middleman-gh-pages
middleman-deploy
middleman-livereload (~> 3.1.0)
51 changes: 5 additions & 46 deletions config.rb
Original file line number Diff line number Diff line change
@@ -1,56 +1,11 @@
###
# Compass
###

# Change Compass configuration
# compass_config do |config|
# config.output_style = :compact
# end

###
# Page options, layouts, aliases and proxies
###

# Per-page layout changes:
#
# With no layout
# page "/path/to/file.html", :layout => false
#
# With alternative layout
# page "/path/to/file.html", :layout => :otherlayout
#
# A path which all have the same layout
# with_layout :admin do
# page "/admin/*"
# end

# Proxy pages (http://middlemanapp.com/dynamic-pages/)
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
# :which_fake_page => "Rendering a fake page with a local variable" }

###
# Helpers
###

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes

# Reload the browser automatically whenever files change
# activate :livereload

# Methods defined in the helpers block are available in templates
# helpers do
# def some_helper
# "Helping"
# end
# end

set :css_dir, 'css'

set :js_dir, 'js'

set :images_dir, 'img'


# Build-specific configuration
configure :build do
# For example, change the Compass output style for deployment
Expand All @@ -68,3 +23,7 @@
# Or use a different image path
# set :http_prefix, "/Content/images/"
end

activate :deploy do |deploy|
deploy.method = :git
end

0 comments on commit 4492193

Please sign in to comment.