bulunmayan config/sitemap.rb aşağıdaki yapılandırmaya sahip: Ben Site Haritası dosyası Ben sitemap_generator gem kullanarak ve am üretim
uygulama localhost'a alanımı değişti
require 'rubygems'
require 'sitemap_generator'
SitemapGenerator::Sitemap.default_host = 'http://www.localhost.com'
SitemapGenerator::Sitemap.create do
add '/', :changefreq => 'daily', :priority => 0.9
add '/contact', :changefreq => 'weekly'
User.find_each do |user|
add users_path(user), lastmod: user.updated_at
end
end
SitemapGenerator::Sitemap.ping_search_engines
- kahramana ev sahipliği yapmaktadır. Ben
heroku run rake sitemap:refresh
yaptığınızda aşağıdaki sonuçlarIn '/app/public/': + sitemap.xml.gz 76 links/ 1.53 KB Sitemap stats: 76 links/1 sitemaps/0m00s Pinging with URL 'http://www.localhost.com/sitemap.xml.gz': Successful ping of Google Successful ping of Bing Pinging with URL 'http://www.localhost.com/sitemap.xml.gz': Successful ping of Google Successful ping of Bing
Şimdi sitemap.xml.gz dosyası ve hiçbir yerde Heroku üzerine bulmaya olsun. Ben
heroku run rake ls
,heroku run rake ls tmp
veheroku run rake ls public
yapıyorum ve hiçbir yerde bulunamadı.SitemapGenerator::Sitemap.public_path = 'tmp/' SitemapGenerator::Sitemap.sitemaps_path = 'sitemaps/'
ama yine site haritaları bu klasörler oluşturulur değildi: Geçmişte
Ben de sitemap.rb üzerindeki bu iki satırı vardı. Yanlış yaptığım ve üretmediğim hakkında bir ipucu var mı?
yapayım bu ne anlama geliyor:
adaptör ortam değişkenleri kurulum unutmayın:
ben sis-aws mücevher kullanmak ve sitemap.rb dosyasını yapılandırmak zorunda Site haritasını oluşturmak ve S3'e eklemek? –S3.It'e olduğu gibi herhangi bir kalıcı dosya sistemi olabilir – sureshprasanna70