diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-23 08:30:14 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-23 08:30:14 -0600 |
| commit | 889ffa699596edea5e3d49ffcce27ce5abd73170 (patch) | |
| tree | 48bdef8f42749e634896f25cd3b05c96bf443381 | |
| parent | acdb1764ba9aa4466549e2f0b27fee0f458a8d0e (diff) | |
remove the old capistrano stuff that is not used anymore.
| -rw-r--r-- | old_cap/Capfile | 3 | ||||
| -rw-r--r-- | old_cap/deploy.rb | 16 | ||||
| -rw-r--r-- | old_cap/recipes/environments.rb | 3 | ||||
| -rw-r--r-- | old_cap/recipes/templates/500.sh.erb | 38 |
4 files changed, 0 insertions, 60 deletions
diff --git a/old_cap/Capfile b/old_cap/Capfile deleted file mode 100644 index 309bdbfd..00000000 --- a/old_cap/Capfile +++ /dev/null @@ -1,3 +0,0 @@ -load 'deploy' -load 'deploy/assets' -load 'config/deploy' # remove this line to skip loading any of the default tasks diff --git a/old_cap/deploy.rb b/old_cap/deploy.rb deleted file mode 100644 index 9e8c1ece..00000000 --- a/old_cap/deploy.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'bundler/capistrano' -require 'dotenv/deployment/capistrano' - -load "config/recipes/environments" -load "config/recipes/base" -load "config/recipes/nginx" -load "config/recipes/unicorn" -load "config/recipes/postgresql" -load "config/recipes/delayed_job" -load "config/recipes/monit" -load "config/tasks/utility" -load "config/tasks/rails" - -after "deploy", "deploy:cleanup" # remove old releases - -require './config/boot' diff --git a/old_cap/recipes/environments.rb b/old_cap/recipes/environments.rb deleted file mode 100644 index b9e5e773..00000000 --- a/old_cap/recipes/environments.rb +++ /dev/null @@ -1,3 +0,0 @@ -set :stages, %w(production staging) -set :default_stage, "staging" -require 'capistrano/ext/multistage' diff --git a/old_cap/recipes/templates/500.sh.erb b/old_cap/recipes/templates/500.sh.erb deleted file mode 100644 index 7ec8f66d..00000000 --- a/old_cap/recipes/templates/500.sh.erb +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# A Nginx Shell Script To Block Spamhaus Lasso Drop Spam IP Address -# Run this script once a day and drop all spam network IPs (netblock) with http 403 client error. -# The script will get executed every day via /etc/cron.daily (make sure crond -# is running). -# ------------------------------------------------------------------------- -# Copyright (c) 2008 nixCraft project <http://cyberciti.biz/fb/> -# This script is licensed under GNU GPL version 2.0 or above -# ------------------------------------------------------------------------- -# This script is part of nixCraft shell script collection (NSSC) -# Visit http://bash.cyberciti.biz/ for more information. -# ------------------------------------------------------------------------- -# Last updated on Jan/11/2010 -# ------------------------------------------------------------------------- -# tmp file -FILE="/tmp/drop.lasso.txt.$$" - -# nginx config file - path to nginx drop conf file -OUT=/etc/nginx/conf.d/drop.lasso.conf - -URL="http://www.spamhaus.org/drop/drop.lasso" -# reload command -NGINX="/usr/sbin/nginx -s reload" - -# remove old file -[[ -f $FILE ]] && /bin/rm -f $FILE - -# emply nginx deny file ->$OUT - -# get database -/usr/bin/wget --output-document=$FILE "$URL" - -# format in nginx deny netblock; format -/bin/egrep -v '^;' $FILE | awk '{ print "deny " $1";"}' >>$OUT - -# reload nginx -/bin/sync && ${NGINX} |
