Skip to content

Instantly share code, notes, and snippets.

@nambrot
Last active January 4, 2016 13:39
Show Gist options
  • Save nambrot/8629179 to your computer and use it in GitHub Desktop.
Save nambrot/8629179 to your computer and use it in GitHub Desktop.
# Fetch pins
while true
Bookmark.first.destroy
while Pin.count < 10000
c = Pin.count
puts c
Pin.fetch_pins
break if Pin.count == c
end
puts 'endloop'
end
# get locations
# just run the workers
#either run multiple `rake jobs:work` processes or simply
foreman start -c worker=10
Heroku:
outcomment lines in config/unicorn.rb
and push
@cmcewen
Copy link

cmcewen commented Jan 26, 2014

console > shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment