Giter VIP home page Giter VIP logo

Comments (7)

bryansray avatar bryansray commented on June 28, 2024 7

It would seem that simply changing your deploy.method to deploy.deploy_method will fix this problem.

I believe that commit 9eece01 is responsible for the change. Not entirely sure why the change though? Seems like it may have been a typo.

activate :deploy do |deploy|
  deploy.deploy_method = :rsync
end

from middleman-deploy.

glennpjones avatar glennpjones commented on June 28, 2024 6

Encountered same problem and @kirichkov's comment solved it for me. Had to specify git instead of github.

gem 'middleman-deploy', git: 'https://github.com/middleman-contrib/middleman-deploy', branch: 'master'

from middleman-deploy.

kirichkov avatar kirichkov commented on June 28, 2024 2

Change the line in your Gemfile to:

gem 'middleman-deploy', github: 'middleman-contrib/middleman-deploy', branch: 'master'

You need to use the latest version, because of changes in the middleman v4.0.0 API. Your other option is to downgrade middleman-core to v3

from middleman-deploy.

egardner avatar egardner commented on June 28, 2024

I think I'm seeing a related issue – I've added the latest version to my gemfile as above, but when running bundle exec middleman deploy I get an error message stating Setting method doesn't exist (Runtime Error). I'm using Ruby 2.2.2 and Middleman v4, and using a standard github-pages deploy setup which has worked on v3 sites.

from middleman-deploy.

rriemann avatar rriemann commented on June 28, 2024

I can confirm this issue. Ruby 2.2.1, middleman-core-4.1.1 here.

from middleman-deploy.

mbyio avatar mbyio commented on June 28, 2024

I also encountered this issue until I saw @kirichkov 's instructions. Please consider updating the README.

from middleman-deploy.

legal90 avatar legal90 commented on June 28, 2024

I can confirm this too. However, solutions above doesn't help. The trace is:

$ bundle exec middleman deploy -b
/Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/bundler/gems/middleman-deploy-243ab38b0889/lib/middleman-deploy/commands.rb:94:in `deploy_options': undefined method `deploy_method' for nil:NilClass (NoMethodError)
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/bundler/gems/middleman-deploy-243ab38b0889/lib/middleman-deploy/commands.rb:64:in `build_before'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/bundler/gems/middleman-deploy-243ab38b0889/lib/middleman-deploy/commands.rb:57:in `deploy'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:40:in `block in register'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/legal/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/middleman-cli-4.1.6/bin/middleman:67:in `<top (required)>'
    from /Users/legal/.rbenv/versions/2.1.0/bin/middleman:23:in `load'
    from /Users/legal/.rbenv/versions/2.1.0/bin/middleman:23:in `<main>'

from middleman-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.