rtCamp/Frappe-Manager

Introduce Toggleable Admin Tools(Mailhog and Adminer)

Xieyt opened this issue · 0 comments

Description

  • Move Adminer and Mailhog to different compose file.
  • Make them toggle able as Admin tools.
  • Provide command fm update --admin-tools <enable/disable>.
  • Automatically enable Admin Tools for fm dev environment.

Enable Admin Tools Flow:

  • Start both Adminer and Mailhog services.
  • Include the respective location configurations for Adminer and Mailhog in Nginx and reload Nginx.
  • Set Mailhog as the default mail server in bench common_site_config.json.
  • Prompt the user to restart the Frappe server for the changes to take effect.

Disable Admin Tools Flow:

  • Remove Nginx location configurations for Adminer and Mailhog and reload Nginx.
  • Stop both Adminer and Mailhog services.
  • Remove Mailhog as the default mail server from bench common_site_config.json if it exists.
  • Prompt the user to Frappe restart the server if common_site_config.json is changed.