Comments (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.
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.
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.
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.
I can confirm this issue. Ruby 2.2.1, middleman-core-4.1.1 here.
from middleman-deploy.
I also encountered this issue until I saw @kirichkov 's instructions. Please consider updating the README.
from middleman-deploy.
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)
- README: 'deploy_method' should be 'deploy' HOT 5
- Local changes would be overwritten by checkout
- CNAME gets blown out with force update HOT 4
- `block in initialize': undefined method `deploy_method=' for #<Middleman::Deploy
- Can't deploy to remote HOT 1
- Deploy build directory to github pages? HOT 7
- Git Force-Push Deploy Pushes Root Instead of Build Dir HOT 18
- Compatibility with Middleman 4.1.7 HOT 4
- Deploy path doesn't work for Git Deploy Method HOT 1
- Rsync: Configured username ignored HOT 4
- Forceful deploy cause long upload times
- deploy.user not being set HOT 1
- Error with Middleman 4.2 and middleman-deploy 1.0 HOT 16
- deploy.deploy_method has changed to method HOT 1
- How to deploy robots.txt file HOT 1
- Ubuntu 18.04 rsync method fails
- Support additional commands during deploy
- Feature Request: support a different trunk branch HOT 1
- Is this gem abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from middleman-deploy.