簡體   English   中英

如何在現有倉庫中使用 Neo4j 配置 Rails?

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

我目前正在嘗試重新配置我的數據庫以使用 Neo4j 而不是 Postgres,並且我遇到了配置問題。

我已將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盡管每個在線資源都證明這是生成數據庫的方式,但仍然存在。 我目前在 Rails 版本6.1.3.2和 ruby 版本2.6.6上運行

這些是我一直在使用的一些資源。

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

提前謝謝了

這是 zsh shell 錯誤解釋命令行中的括號的問題。

使用單引號來轉義參數。 例子:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM