对 Rails Gem 作出反应 - 工头雷神冲突

React on Rails Gem - Foreman Thor Conflict

我一直在尝试实施 react_on_rails gem using the tutorial found here

不同之处在于我使用的是 ruby 2.3.3、节点 7.2.0 和 运行 使用 redux (rails generate react_on_rails:install --redux)

的设置

但是现在当我尝试 运行 工头 foreman run -f Procfile.dev 我得到以下错误:

/Users/ryanking/.rvm/gems/ruby-2.3.3/gems/thor-0.19.3/lib/thor/base.rb:534:in `thor_reserved_word?': "run" is a Thor reserved word and cannot be defined as command (RuntimeError)
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/gems/thor-0.19.3/lib/thor/base.rb:597:in `method_added'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/gems/foreman-0.82.0/lib/foreman/cli.rb:80:in `<class:CLI>'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/gems/foreman-0.82.0/lib/foreman/cli.rb:11:in `<top (required)>'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/gems/foreman-0.82.0/bin/foreman:5:in `require'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/gems/foreman-0.82.0/bin/foreman:5:in `<top (required)>'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/bin/foreman:22:in `load'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/bin/foreman:22:in `<main>'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
    from /Users/ryanking/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'

知道为什么会这样吗?我该如何解决?


Procfile.dev 包含:

web: rails s -p 3000
client: sh -c 'rm app/assets/webpack/* || true && cd client && npm run build:development'

我可以从命令行 运行 正常,但不能用工头。

这是一个bug

After upgrading to thor-0.19.2 from thor-0.19.1