【文件属性】:
文件名称:pdf_archive:我为帮助编写 Heroku 开发文章而构建的一个简单应用程序
文件大小:21.56MB
文件格式:ZIP
更新时间:2021-06-15 18:32:32
Ruby
PDF档案
PDF Archive 是一个简单的 PDF 存储和检索系统。 上传 PDF 将存储它,为搜索列表创建预览图像,并从中提取文本,以便将其编入索引以进行搜索。
设置
git clone git://github.com/jonmagic/pdf_archive.git
cd pdf_archive
bundle
运行测试
bundle exec rake
运行应用程序和后台工作者
gem install foreman
foreman start
您现在可以在浏览器中打开该应用程序
在 Heroku 上运行
在 Heroku 上运行它需要以下步骤:
步骤 1:在 Heroku Cedar 堆栈上创建应用程序
gem install heroku
heroku apps:create app_name --stack cedar
我们还需要配置它以在生产中运行
herok
【文件预览】:
pdf_archive-master
----bin()
--------9.02()
--------pdftotext(2.62MB)
--------9.04()
----Rakefile(404B)
----Procfile(96B)
----Gemfile(344B)
----Gemfile.lock(3KB)
----spec()
--------pdf_uploader_spec.rb(842B)
--------document_spec.rb(408B)
--------pdf_archive_spec.rb(2KB)
--------process_pdf_spec.rb(764B)
--------spec_helper.rb(737B)
--------fixtures()
----.gitignore(24B)
----lib()
--------views()
--------preview_store.rb(454B)
--------pdf_uploader.rb(728B)
--------pdf_archive.rb(2KB)
--------process_pdf.rb(363B)
--------document.rb(209B)
----README.md(3KB)