about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:37:43 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-15 12:37:43 +0200
commit4d336ceface783c255e62220cfa76812630ff1a1 (patch)
tree72407fd4b5368d3e8cdfd4c85ae928a654d8d261 /lib
parent20f581f79669118a1a4052408078d53c7bbe83f2 (diff)
Add sync command for neo4j, fix configuration, add neo4j to docker-compose, fix seed
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/mastodon.rake7
1 files changed, 7 insertions, 0 deletions
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