Ver Fonte

Added sitemap generator (#50)

* Updated template to use Rails 5.2 and added whenever gem

* jumstart

* remove .idea files

* fixed spelling mistake
William Kennedy há 6 anos atrás
pai
commit
d538d2e5b3
2 ficheiros alterados com 10 adições e 0 exclusões
  1. 3 0
      .gitignore
  2. 7 0
      template.rb

+ 3 - 0
.gitignore

@@ -1 +1,4 @@
 .DS_Store
+.idea
+.idea/
+

+ 7 - 0
template.rb

@@ -44,6 +44,7 @@ def add_gems
   gem 'omniauth-github', '~> 1.3'
   gem 'whenever', require: false
   gem 'friendly_id', '~> 5.1.0'
+  gem 'sitemap_generator', '~> 6.0', '>= 6.0.1'
 end
 
 def set_application_name
@@ -197,6 +198,10 @@ def stop_spring
   run "spring stop"
 end
 
+def add_sitemap
+  rails_command "sitemap:install"
+end
+
 # Main setup
 add_template_repository_to_source_path
 
@@ -226,6 +231,8 @@ after_bundle do
 
   add_whenever
 
+  add_sitemap
+
 
   git :init
   git add: "."