Remove obsolete scripts.
These are mostly old files mostly related to maintenance of Danbooru 1 or the upgrade to Danbooru 2.
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
set alert r888888888@gmail.com
|
|
||||||
|
|
||||||
check process delayed_job with pidfile /var/www/danbooru2/shared/pids/delayed_job.pid
|
|
||||||
alert r888888888@gmail.com only on {nonexist}
|
|
||||||
1477
db/schema.rb
1477
db/schema.rb
File diff suppressed because it is too large
Load Diff
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
export RAILS_ENV=production
|
|
||||||
cd "$(dirname $0)/../../"
|
|
||||||
script/donmai/backup_db
|
|
||||||
script/donmai/backup_db_to_s3
|
|
||||||
script/donmai/prune_backup_dbs
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mv public/maintenance.html.bak public/maintenance.html
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
script/donmai/downbooru
|
|
||||||
sleep 5
|
|
||||||
ps aux | grep Rack | grep Rl | cut -c10-15 | xargs kill -SIGTERM
|
|
||||||
script/donmai/upbooru
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
mv public/maintenance.html public/maintenance.html.bak
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
psql -h dbserver <<EOF
|
|
||||||
set statement_timeout = 0;
|
|
||||||
vacuum analyze posts;
|
|
||||||
vacuum analyze tags;
|
|
||||||
vacuum analyze users;
|
|
||||||
vacuum analyze favorites;
|
|
||||||
vacuum analyze comments;
|
|
||||||
EOF
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
|
||||||
|
|
||||||
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
||||||
require File.expand_path('../../config/boot', __FILE__)
|
|
||||||
require 'rails/commands'
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
|
|
||||||
|
|
||||||
PoolVersion.find_each do |version|
|
|
||||||
version.update_column(:post_ids, version.post_ids.scan(/\d+/).in_groups_of(2).map {|x| x.first}.join(" "))
|
|
||||||
end
|
|
||||||
|
|
||||||
TagImplication.destroy_all("antecedent_name = consequent_name")
|
|
||||||
TagImplication.find_each do |impl|
|
|
||||||
impl.update_descendant_names!
|
|
||||||
end
|
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user