aboutsummaryrefslogtreecommitdiffstats
path: root/script/rails-post-deploy
diff options
context:
space:
mode:
Diffstat (limited to 'script/rails-post-deploy')
-rwxr-xr-xscript/rails-post-deploy7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index 1fe56212c..df9f67528 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -44,6 +44,13 @@ else
fi
mkdir -p log
fi
+# link the "downloads" directory in the cache to somewhere it can be served
+if [ ! -e $APP_DIR/public/download ]
+then
+ mkdir -p $APP_DIR/cache/zips/download
+ ln -s $APP_DIR/cache/zips/download $APP_DIR/public/
+fi
+
cd log
touch development.log fastcgi.crash.log production.log test.log
cd ..