diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-15 12:22:33 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-15 12:22:59 +0100 |
commit | b0a09b85d54c200792f3f4f68ef47f29bc1a886e (patch) | |
tree | e07b0962acac0768c7f7d28a6108966f7626902f | |
parent | 9aaf2baf65cedabd5f0ca7b5d91a77c47a25b11b (diff) |
Add notes about how to make zipfiles downloadable (and provide for this in the rails-post-deply script)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | doc/CHANGES.md | 1 | ||||
-rwxr-xr-x | script/rails-post-deploy | 4 |
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 .. |