aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-09-15 12:22:33 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-09-15 12:22:59 +0100
commitb0a09b85d54c200792f3f4f68ef47f29bc1a886e (patch)
treee07b0962acac0768c7f7d28a6108966f7626902f
parent9aaf2baf65cedabd5f0ca7b5d91a77c47a25b11b (diff)
Add notes about how to make zipfiles downloadable (and provide for this in the rails-post-deply script)
-rw-r--r--.gitignore1
-rw-r--r--doc/CHANGES.md1
-rwxr-xr-xscript/rails-post-deploy4
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index cef86879d..92831606a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ TAGS
/vendor/plugins/*theme
/locale/model_attributes.rb
/files/
+public/download \ No newline at end of file
diff --git a/doc/CHANGES.md b/doc/CHANGES.md
index 8299e8e8a..37ef57c2a 100644
--- a/doc/CHANGES.md
+++ b/doc/CHANGES.md
@@ -12,6 +12,7 @@
* Install wkhtmltopdf to enable PDFs in downloadable zipfiles. A
static binary is recommended on Linux in order to run the command
headless: http://code.google.com/p/wkhtmltopdf/downloads/list
+* Ensure your webserver can serve up generated files by symlinking `cache/zips/download` to `public/download` (this is also done by the `rails-post-deploy` script)
* Configure your MTA to handle bounce emails from alerts (see INSTALL-exim4.md)
## Highlighted features
diff --git a/script/rails-post-deploy b/script/rails-post-deploy
index 1fe56212c..437b7255a 100755
--- a/script/rails-post-deploy
+++ b/script/rails-post-deploy
@@ -44,6 +44,10 @@ else
fi
mkdir -p log
fi
+# link the "downloads" directory in the cache to somewhere it can be served
+mkdir -p $APP_DIR/cache/zips/download
+ln -s $APP_DIR/cache/zips/download $APP_DIR/public/
+
cd log
touch development.log fastcgi.crash.log production.log test.log
cd ..