我正在按照https://neo4j.com/developer/ruby-course/这条指令“ Neo4j和Ruby入门”。
以下是设置资产门户Rails应用的方法:
rails new asset_portal -m http://neo4jrb.io/neo4j/neo4j.rb -O
cd asset_portal
rake neo4j:install[community-latest]
rake neo4j:start
但是我跑步之后
rake neo4j:install[community-latest]
我收到了这张纸条
The `neo4j-rake_tasks` gem is no longer a dependency of the `neo4j-core` gem.
If you would like to use the rake tasks, you will need to explicitly include the `neo4j-rake_tasks` gem in your project.
Please note that the `neo4j-rake_tasks` gem is only for development and test environments (NOT for production).
Be sure to require the `neo4j-rake_tasks` gem AFTER the `neo4j-core` and `neo4j` gems.
For more details see the Neo4j.rb documentation
现在我该怎么做,使 rake neo4j:install [community-latest] 正常工作?
谢谢!
答案 0 :(得分:1)
仅添加流畅的代码段
gem 'neo4j-rake_tasks'
捆绑安装
希望能解决您的问题。
答案 1 :(得分:0)
我需要在GemFile中添加以下几行
gem 'neo4j-core'
gem 'neo4j-rake_tasks'
然后运行命令
bundle install
rake neo4j:install[community-latest]
rake neo4j:start