sitemap生成器gem不会写入heroku上的tmp

时间:2018-06-10 11:42:59

标签: ruby-on-rails sitemap-generator-gem

我正在尝试使用gem sitemap_generator来生成站点地图并将其发送到我的S3。它似乎运行得很好。没有错误。我看它,因为它说它正在写16个文件(适当的大小)。但是这些文件永远不会写入heroku中的tmp,其中的指令声明它应该是正在运行的。确保我可以手动写入该tmp文件。没问题。所以,没有运行错误,没有写权限问题,但xml文件只是没有写。救命!这是我的基本设置代码:

  

SitemapGenerator :: Sitemap.default_host ='https://www.shipindex.org/'   SitemapGenerator :: Sitemap.sitemaps_host ='http://s3.amazonaws.com/shipindex-sitemap/'   SitemapGenerator :: Sitemap.public_path ='tmp / sitemap /'   SitemapGenerator :: Sitemap.create_index = true

0 个答案:

没有答案