Rake tasks for managing a Neo4j database with your Ruby project
The neo4j-rake_tasks
gem includes some rake tasks which make it easy to install and manage a Neo4j server in the same directory as your Ruby project.
WARNING: NOT FOR PRODUCTION USE! These rake tasks are intended to make installing and managing a Neo4j server in development and testing easier. Since authentication is disabled by default, this gem should not be used in production. If you need Neo4j in production, installation can be as easy as downloading, unzipping, and running the executable.
NOTE: The neo4j-rake_tasks
gem used to be included automatically with the neo4j-core
gem (which is in turn included automatically in the neo4j
gem). This is no longer the case because not everybody needs these tasks.
version
and environment
(environment default is development
)
rake neo4j:install[community-latest,development]
... or to get a specific version
rake neo4j:install[community-2.2.3,development]
Downloads and installs Neo4j into $PROJECT_DIR/db/neo4j/<environment>/
environment
and port
rake neo4j:config[development,7000]
Configure the port which Neo4j runs on. This affects the HTTP REST interface and the web console address.
environment
rake neo4j:start[development]
Start the Neo4j server
environment
rake neo4j:start_no_wait[development]
Start the Neo4j server with the start-no-wait
command
environment
rake neo4j:stop[development]
Stop the Neo4j server
environment
rake neo4j:indexes[development]
Print out the indexes in the database
environment
rake neo4j:constraints[development]
Print out the constraints in the database
environment
rake neo4j:reset_yes_i_am_sure[development]
[db-root]/data/graph.db/*
[db-root]/data/log/*