简体   繁体   English

如何在现有仓库中使用 Neo4j 配置 Rails?

[英]How can I configure Rails with Neo4j in an existing repo?

I'm currently trying to re-configure my database to use Neo4j as opposed to Postgres and I'm having issues with configuration.我目前正在尝试重新配置我的数据库以使用 Neo4j 而不是 Postgres,并且我遇到了配置问题。

I've adding the neo4j gem into my gemfile as well as neo4j-core , neo4j-ruby-driver , and neo4j-rake_tasks .我已将neo4j gem 添加到我的 gemfile 以及neo4j-coreneo4j-ruby-driverneo4j-rake_tasks中。 I've tried running rake neo4j:install[community-latest] to generate the Neo4j instance but it throws me this – zsh: no matches found: neo4j:install[community-latest] After listing all rake tasks this rake task does not appear to be present despite every online resource demonstrating this as the way to generate the DB. I've tried running rake neo4j:install[community-latest] to generate the Neo4j instance but it throws me this – zsh: no matches found: neo4j:install[community-latest] After listing all rake tasks this rake task does not appear尽管每个在线资源都证明这是生成数据库的方式,但仍然存在。 I'm currently running on rails version 6.1.3.2 and ruby version 2.6.6我目前在 Rails 版本6.1.3.2和 ruby 版本2.6.6上运行

These are some of the resources I have been using.这些是我一直在使用的一些资源。

  1. https://neo4jrb.readthedocs.io/en/v10.0.1/Setup.html https://neo4jrb.readthedocs.io/en/v10.0.1/Setup.html
  2. https://diatomenterprises.com/using-neo4j-with-ruby-on-rails/ https://diatomenterprises.com/using-neo4j-with-ruby-on-rails/

Many thanks in advance提前谢谢了

This is an issue with the zsh shell misinterpreting the brackets in the command line.这是 zsh shell 错误解释命令行中的括号的问题。

Use single quotes to escape the argument.使用单引号来转义参数。 Example:例子:

rake 'neo4j:install[community-latest,development]'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM