我一直在尝试使用找到react_on_rails的教程来实现here gem。
区别在于我使用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>'
知道为什么会发生这种情况&amp;我怎么能解决它?
Procfile.dev包含:
web: rails s -p 3000
client: sh -c 'rm app/assets/webpack/* || true && cd client && npm run build:development'
我可以从命令行运行,但不能与领班一起运行。