rtCamp / Frappe-Manager

A CLI tool based on Docker Compose to easily manage Frappe based projects.
MIT License
87 stars 19 forks source link

`restart` command #212

Closed Xieyt closed 3 weeks ago

Xieyt commented 3 weeks ago

Description Whenever a new app is installed/uninstalled. Restart of dependent services is required or it will throw error like module not found. To fix this type of issue you will have to restart all env dependent services like scheduler, socketio, workers and frappe server(dev or prod).

For easier restart of the services, we required fm restart <benchname> command.

Xieyt commented 3 weeks ago

Command: fm restart <benchname>

Description: Restart bench services.

Arguments:

Flags: --web / --no-web : Restart web service (i.e., socketio and frappe server). [default: web] --workers / --no-workers : Restart worker services (i.e., schedule and all workers). [default: workers] --redis / --no-redis : Restart redis services. [default: no-redis]

Command Flow: If --web flag given then restart service socketio and frappe container If --workers flag is given then restart all workers and schedule If --redis given then restart redis services