mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 10:24:44 +08:00
docs: Add note on where to put local assets
This commit is contained in:
@ -325,6 +325,20 @@ and create an account by logging in normally, then run the commands:
|
|||||||
> me.admin = true
|
> me.admin = true
|
||||||
> me.save
|
> 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
|
## Updating Discourse
|
||||||
|
|
||||||
# Run these commands as the discourse user
|
# 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 db:migrate
|
||||||
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile
|
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production rake assets:precompile
|
||||||
bluepill start
|
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
|
||||||
|
Reference in New Issue
Block a user