Some times, we need to expose our backup Twittermap server to the outside when production Twittermap server is under maintenance. And to reduce confusion to end users, we need to put a message under the Searchbar like following:
Problem
Now we have to show this message by modifying the code every time we deploy a new backup server.
Solution
We need to make this message configurable in our application.conf file by adding a new parameter alert_message, and if this parameter is set with any string, the frontend will just show it under the Searchbar similar to the picture above.
Background
Some times, we need to expose our backup Twittermap server to the outside when production Twittermap server is under maintenance. And to reduce confusion to end users, we need to put a message under the Searchbar like following:
Problem
Now we have to show this message by modifying the code every time we deploy a new backup server.
Solution
We need to make this message configurable in our
application.conf
file by adding a new parameteralert_message
, and if this parameter is set with any string, the frontend will just show it under the Searchbar similar to the picture above.