diff options
| author | Luc Donnet | 2015-05-21 13:24:54 +0200 |
|---|---|---|
| committer | Luc Donnet | 2015-05-21 13:24:54 +0200 |
| commit | ae06f88209ade55bd10a7be6a8a62695259ef5ef (patch) | |
| tree | 537b798d552cb92cc2a8cb82a324ddc24df575c7 /config | |
| parent | 1cc6c5e68b597aab12da7cdbfd2e9c452bb805a6 (diff) | |
| download | chouette-core-ae06f88209ade55bd10a7be6a8a62695259ef5ef.tar.bz2 | |
Delete sitemap generator not useful for our rails app
Diffstat (limited to 'config')
| -rw-r--r-- | config/deploy.rb | 7 | ||||
| -rw-r--r-- | config/deploy/production.rb | 2 | ||||
| -rw-r--r-- | config/sitemap.rb | 30 |
3 files changed, 0 insertions, 39 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index a65db82df..285938700 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -24,8 +24,6 @@ after "deploy:update", "deploy:cleanup", "deploy:group_writable" 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: @@ -46,11 +44,6 @@ namespace :deploy do 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" diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 8f300fdbf..c24f29894 100644 --- a/config/deploy/production.rb +++ b/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" diff --git a/config/sitemap.rb b/config/sitemap.rb deleted file mode 100644 index f76476c4e..000000000 --- a/config/sitemap.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Set the host name for URL creation -SitemapGenerator::Sitemap.default_host = "http://appli.chouette.mobi/chouette2/" - -SitemapGenerator::Sitemap.create do - # Put links creation logic here. - # - # The root path '/' and sitemap index file are added automatically for you. - # Links are added to the Sitemap in the order they are specified. - # - # Usage: add(path, options={}) - # (default options are used if you don't specify) - # - # Defaults: :priority => 0.5, :changefreq => 'weekly', - # :lastmod => Time.now, :host => default_host - # - # Examples: - # - # Add '/articles' - # - # add articles_path, :priority => 0.7, :changefreq => 'daily' - # - # Add all articles: - # - # Article.find_each do |article| - # add article_path(article), :lastmod => article.updated_at - # end - - add '/help' - -end |
