From ffba090fb78db1e4b18eb12d6ebfd2c4328d5a39 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 24 Jun 2013 04:09:43 -0400 Subject: [PATCH] docs: Add note on where to put local assets --- docs/INSTALL-ubuntu.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/INSTALL-ubuntu.md b/docs/INSTALL-ubuntu.md index eabf47bb94c..8ff3ff3652a 100644 --- a/docs/INSTALL-ubuntu.md +++ b/docs/INSTALL-ubuntu.md @@ -325,6 +325,20 @@ and create an account by logging in normally, then run the commands: > me.admin = true > me.save +## Site localization + +Custom assets such as images should be placed somewhere under: + + DISCOURSE_HOME/public/ + +For example, create a `local` directory and place it into: + + DISCOURSE_HOME/public/uploads/local/michael.png + +The corresponding site setting is: + + logo_small_url: /uploads/local/michael.png + ## Updating Discourse # Run these commands as the discourse user @@ -340,3 +354,5 @@ and create an account by logging in normally, then run the commands: RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake db:migrate RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile bluepill start + +Note that if bluepill *itself* needs to be restarted, it must be killed with `bluepill quit` and restarted with the same command that's in crontab