Created by: Nathaniel Hammond ([email protected]) on 2015/03/23 15:31:39 +0000
Votes at time of UserVoice import: 4
A config variable to be able to define the logo in General Settings.
I could do with this. We deploy Craft via a blue/green strategy (eg. spin up new instances from source and then swap over to them), meaning any logo I upload via the control panel gets wiped out between deploys.
Why not just commit the logo to Git and have it be part of the deploy?
Makes sense – is there a reference in the database somewhere to the filename Craft expects? I can see a path like /cpresources/4139eb4d/logo.svg?v=1548755111 being used, would it be safe to just hardcode a file at this path (or symlink one there) inside my repo?
As long as there is a file in storage/rebrand/logo/, Craft will show it on the login page. No DB changes necessary.
Excellent! Thank you so much Brandon.
I still think it would be nice to be able to set this to a custom path -- or an environment variable. That way it's easy to have a different logo for local/test/staging/production for example as an indicator to users.
Most helpful comment
As long as there is a file in
storage/rebrand/logo/, Craft will show it on the login page. No DB changes necessary.