Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 395 Bytes
###suporte a filas
#instalar o redis
#execute o comando abaixo
redis-server
#sobe o sunspot
sunspot-rails start
# na raiz do projeto
QUEUE=* VERBOSE=1 rake resque:work
#para ver os jobs
resque-web
#acessa na url http://localhost:5678/overview
#criar pasta public/images/covers
book = Book.last
pdf = PDF::Toolkit.open(book.file_full_path)
http://rubydoc.info/gems/pdf-toolkit/0.49/frames