Last active
January 4, 2016 13:39
-
-
Save nambrot/8629179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
console > shell