From 4d336ceface783c255e62220cfa76812630ff1a1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 15 Oct 2016 12:37:43 +0200 Subject: Add sync command for neo4j, fix configuration, add neo4j to docker-compose, fix seed --- lib/tasks/mastodon.rake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 29e4494c4..aa07c0738 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -41,4 +41,11 @@ namespace :mastodon do $redis.keys('feed:*').each { |key| $redis.del(key) } end end + + namespace :graphs do + desc 'Syncs all follow relationships to Neo4J' + task sync: :environment do + Follow.find_each(&:sync!) + end + end end -- cgit