2016-11-27 112 views
2

我一直在嘗試使用教程發現here來實現react_on_rails寶石。React on Rails寶石 - 工頭雷神衝突

的區別是我使用的紅寶石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' 

,我可以運行在命令行罰款,但沒有與工頭。

回答

3

這是一個bug

After upgrading to thor-0.19.2 from thor-0.19.1

+0

似乎不有所作爲 - 仍然會產生相同的反應 –

+0

該命令產生反應?你是否理解'run'和'start'參數之間的區別?你有什麼錯誤? –

+0

與上面相同的錯誤。對於運行和啓動命令。 'bundle exec foreman start -f procfile.dev'&'bundle exec foreman run -f Procfile.dev' –