Skip to content

Commit

Permalink
Delete sitemap generator not useful for our rails app
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Donnet committed May 21, 2015
1 parent 1cc6c5e commit ae06f88
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 47 deletions.
1 change: 0 additions & 1 deletion Capfile
@@ -1,6 +1,5 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
require 'bundler/capistrano'
require 'capistrano/sitemap_generator'
# Uncomment if you are using Rails' asset pipeline
load 'deploy/assets'

Expand Down
3 changes: 0 additions & 3 deletions Gemfile
Expand Up @@ -35,9 +35,6 @@ gem 'spring', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]

# Sitemap
gem "sitemap_generator"

# API Rest
gem 'sawyer', "~> 0.6.0"
gem 'faraday_middleware', '~> 0.9.1'
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Expand Up @@ -389,8 +389,6 @@ GEM
simple_form (3.1.0)
actionpack (~> 4.0)
activemodel (~> 4.0)
sitemap_generator (5.0.5)
builder
slop (3.6.0)
spoon (0.0.4)
ffi
Expand Down Expand Up @@ -528,7 +526,6 @@ DEPENDENCIES
sawyer (~> 0.6.0)
sdoc (~> 0.4.0)
simple_form (~> 3.1.0)
sitemap_generator
spring
sqlite3
squeel
Expand Down
7 changes: 0 additions & 7 deletions config/deploy.rb
Expand Up @@ -24,8 +24,6 @@
after "deploy:update_code", "deploy:symlink_shared", "deploy:chouette_command", "deploy:gems"
# ugly workaround for bug https://github.com/capistrano/capistrano/issues/81
before "deploy:assets:precompile", "deploy:symlink_shared"
after "deploy:restart", "delayed_job:restart"
after "deploy:migrate", "deploy:migrate_tenants"

# If you want to use command line options, for example to start multiple workers,
# define a Capistrano variable delayed_job_args:
Expand All @@ -46,11 +44,6 @@
run "mkdir -p #{dirs.join(' ')} && (chmod g+w #{dirs.join(' ')} || true)"
end

desc "Runs rake task which migrates database tables for all tenants"
task :migrate_tenants do
run "cd #{release_path} && RAILS_ENV=production bundle exec rake db:migrate"
end

desc "Install gems"
task :gems, :roles => :app do
run "cd #{release_path} && umask 02 && bundle install --path=#{shared_path}/bundle --without=development:test:cucumber"
Expand Down
2 changes: 0 additions & 2 deletions config/deploy/production.rb
@@ -1,5 +1,3 @@
server "chouette.marseille.cityway.fr", :app, :web, :db, :primary => true
set :branch, "V2_5"
set :gui_cmd, "2.5.1"

after "deploy:update", "deploy:sitemap:refresh"
30 changes: 0 additions & 30 deletions config/sitemap.rb

This file was deleted.

1 change: 0 additions & 1 deletion public/robots.txt
Expand Up @@ -3,4 +3,3 @@
# To ban all spiders from the entire site uncomment the next two lines:
# User-Agent: *
# Disallow: /
Sitemap: http://appli.chouette.mobi/chouette2/sitemap.xml.gz

0 comments on commit ae06f88

Please sign in to comment.