Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Middleman 4.2 and middleman-deploy 1.0 #132

Open
hugobarthelemy opened this issue May 20, 2017 · 16 comments
Open

Error with Middleman 4.2 and middleman-deploy 1.0 #132

hugobarthelemy opened this issue May 20, 2017 · 16 comments

Comments

@hugobarthelemy
Copy link

hugobarthelemy commented May 20, 2017

impossible to launch middleman server. I'have this error when I launch the middleman server :

WARN: Unresolved specs during Gem::Specification.reset:
rack (< 3, >= 1.4.5)
tilt (< 3, >= 1.4.1, > 2.0)
parallel (>= 0)
activesupport (< 5.1, >= 3.1, >= 4.2)
addressable (
> 2.3)
sass (>= 3.4)
uglifier (> 3.0)
hashie (
> 3.4)
concurrent-ruby (~> 1.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/extensions.rb:96:in load': Tried to activate old-style extension: deploy. They are no longer supported. (RuntimeError) from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/extensions.rb:127:in block in load_settings'
from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/extensions.rb:125:in each' from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/extensions.rb:125:in load_settings'
from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/extension_manager.rb:12:in initialize' from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/application.rb:263:in new'
from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-core-4.2.1/lib/middleman-core/application.rb:263:in initialize' from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:49:in new'
from /usr/local/opt/rbenv/versions/2.3.2/lib/ruby/gems/2.3.0/gems/middleman-cli-4.2.1/bin/middleman:49:in <top (required)>' from /usr/local/opt/rbenv/versions/2.3.2/bin/middleman:22:in load'
from /usr/local/opt/rbenv/versions/2.3.2/bin/middleman:22:in `

'

Steps to reproduce the problem (from a clean middleman installation)

$ gem install middleman
$ middleman init
add ''' gem 'middleman-deploy', '~> 1.0' ''' in gemfile
$ bundle install
add in config.rb :

activate :deploy do |deploy|
  deploy.deploy_method = :git
  # Optional Settings
  # deploy.remote   = 'custom-remote' # remote name or git url, default: origin
  # deploy.branch   = 'custom-branch' # default: gh-pages
  # deploy.strategy = :submodule      # commit strategy: can be :force_push or :submodule, default: :force_push
  # deploy.commit_message = 'custom-message'      # commit message (can be empty), default: Automated commit at `timestamp` by middleman-deploy `version`
end""

$ middleman server
--> error

Additional information

  • Ruby version: ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]
  • Middleman version: 4.2
  • OS version: iOS 10.12.4

my code is : https://github.com/hugobarthelemy/combidav

@ParthKolekar
Copy link

Same issue.

@ghost
Copy link

ghost commented Jul 3, 2017

Same here.

@jahed
Copy link

jahed commented Jul 7, 2017

This project seems to be dead. There hasn't been a commit pushed for 2 years. I suggest forking or moving away from it.

@antonijap
Copy link

Yeah, I've noticed. What a shame.

@MaximeMenotti
Copy link

Same issue, any news ?

@antonijap
Copy link

Nope. I've ditched Middleman for https://getgrav.org/

@josefzacek
Copy link

same problem in my case

@josefzacek
Copy link

I managed to deploy using https://github.com/gsamokovarov/middleman-gh_pages

ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

middleman v
Middleman 4.2.1

GitHub repo: https://github.com/josefzacek/jawaireland.ie

Live site: http://www.jawaireland.ie/

@tansaku
Copy link

tansaku commented Oct 18, 2017

works for me, but I had to ensure the following:

gem 'middleman-deploy', '~> 2.0.0.pre.alpha'

and

activate :deploy do |deploy|
  deploy.deploy_method = :git

as mentioned in other threads ...

@tansaku
Copy link

tansaku commented Oct 18, 2017

someone merged a PR two days ago - maybe the project is coming back to life?

@tansaku
Copy link

tansaku commented Oct 18, 2017

@joneslee85 how's everything going? do you need help with this project?

@chrishough
Copy link

I am still getting this error on master too, and had to switch to alpha branch and now I am seeing NoMethodError: undefined method deploy_method' for nil:NilClass`

@agbodike
Copy link

@chrishough Are you using configure in the first line of your deploy config? I had the same issue and then switched from configure to activate and it solved the problem for me (when using the alpha branch)

@chrishough
Copy link

I am using gem 'middleman-deploy', git: 'https://github.com/middleman-contrib/middleman-deploy', branch: 'master' with this:

activate :deploy do |deploy|
  deploy.build_before   = true
  deploy.deploy_method  = :git
  deploy.branch         = 'TEST-BRANCH'
end``` and it is working

@agbodike
Copy link

Interesting, I thought the master branch is broken. I am using the alpha branch, which seems to work:

gem 'middleman-deploy',       '~> 2.0.0.pre.alpha'

My config looks like:

activate :deploy do |deploy|
  deploy.deploy_method = :rsync
  deploy.host          = 'user@hostname'
  deploy.path          = '/path/to/files'
  deploy.build_before  = true
end

Glad to hear yours is working!

@fguillen
Copy link

# Gemfile
gem "middleman-deploy", "~> 2.0.0.pre.alpha"

# config.rb
activate :deploy do |deploy|
  deploy.deploy_method = :git
  deploy.branch = 'gh-pages'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants