aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-08-22 16:30:22 +0100
committerLouise Crow <louise.crow@gmail.com>2013-09-16 14:03:21 +0100
commit28c18ad086768c20d4a8bfaae3844c873b146159 (patch)
tree2bc26c261888a4ebc21abe342f99bfbb53db65b1
parent97c86348f29a4050e8a1d96afa1edad75852a7f4 (diff)
Don't make zip dir publicly accessible.
We want to be able to authorise access to it.
-rw-r--r--config/deploy.rb1
-rwxr-xr-xscript/rails-post-deploy6
2 files changed, 0 insertions, 7 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 3ce1a1969..d26a199c8 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -58,7 +58,6 @@ namespace :deploy do
"#{release_path}/files" => "#{shared_path}/files",
"#{release_path}/cache" => "#{shared_path}/cache",
"#{release_path}/vendor/plugins/acts_as_xapian/xapiandbs" => "#{shared_path}/xapiandbs",
- "#{release_path}/public/download" => "#{release_path}/cache/zips/download"
}
# "ln -sf <a> <b>" creates a symbolic link but deletes <b> if it already exists
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index a3257cf35..7b31d25be 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -46,12 +46,6 @@ else
fi
mkdir -p log
fi
-# link the "downloads" directory in the cache to somewhere it can be served
-if [ ! -e "$TOP_DIR/public/download" ]
-then
- mkdir -p "$TOP_DIR/cache/zips/download"
- ln -s "../cache/zips/download" "$TOP_DIR/public/"
-fi
cd log
touch development.log fastcgi.crash.log production.log test.log