Server Badge is a Frappe app designed to display a visual badge on the UI indicating whether the server is a staging server or a production server. This helps users distinguish between different environments and avoid accidental actions on the wrong server.
-
Get the bench: pip install frappe-bench
-
Create a new bench: bench init my-bench
-
Get the Server Badge app: bench get-app https://github.com/ruknsoftware/server-badge
-
Install the app on your site: bench --site [site-name] install-app server_badge
After installation, Ensure your site_config.json file has the server_type key set to "Stage" and The app will automatically display the badge when the page loads if the server is configured as a staging server.
If you'd like to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.
If you encounter any problems or have any suggestions, please open an issue on this repository.
If you have any questions or suggestions, please feel free to contact me at https://www.linkedin.com/company/ruknsoftware/
MIT